码迷,mamicode.com
首页 >  
搜索关键字:vector    ( 11651个结果
二分查找的 上边界和下边界 以及最接近上边界和最接近下边界的例子
模板来自 www.acwing.com // 23132423543426561213.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <vector> using namespace std; int tes ...
分类:其他好文   时间:2020-06-19 12:28:55    阅读次数:67
R学习-6.Subsetting Vectors
Subsetting Vectors 这一节,学习如何获取vector的子集。比如选取一个向量中的前20个元素、选取非NA的元素、或者大于某个数的元素等。 选取子集的方式类似X[index_vector],X和index_vector都是向量,通过调用X[index_vector],R会根据inde ...
分类:其他好文   时间:2020-06-19 12:10:50    阅读次数:38
A 1141 PAT Ranking of Institutions (25分)
一、技术总结 二、参考代码 #include<iostream> #include<vector> #include<algorithm> #include<set> #include<map> using namespace std; struct node_i{ string name; dou ...
分类:其他好文   时间:2020-06-19 00:49:08    阅读次数:43
模型选择与调优
一、精确率与召回率 1、精确率(Presicion) 预测结果为正例样本中真实为正例的比例(查的准)。 2、召回率(Recall) 真实为正例的样本中预测结果为正例的比例(查的全,对正样本的区分能力)。 3、精确率与召回率的理解 混淆矩阵 在分类任务下,预测结果(Predicted Conditio ...
分类:其他好文   时间:2020-06-19 00:35:03    阅读次数:115
【FPGA】VHDL基础
对象 Constant(常量),Variable(变量),Signal(信号) 语法规则 1、保留字(int),对象(Architecture),函数,过程(process)组成的。 2、大小写不敏感 3、句末用“;”结束 4、对空格键不敏感 5、用--来注释 命名和标签 1、所有名字(字母数字下划 ...
分类:其他好文   时间:2020-06-18 11:18:09    阅读次数:80
深入解析 Java集合类ArrayList与Vector的区别(还没看)
集合类分为两个分支,Collection与Map,其中Collection接口继承了Iterator接口,继承Iterator接口的类可以使用迭代器遍历元素(即Collection接口的类都可以使用),今天我们从相同点、不同点、以及JDK源码等各个方面来深入解析下,底层使用数组实现的两个集合类:Ar ...
分类:编程语言   时间:2020-06-17 23:13:00    阅读次数:60
80. 删除排序数组中的重复项 II(On)
80. 删除排序数组中的重复项 II class Solution { public: int removeDuplicates(vector<int>& nums) { if(nums.size()==0) return 0; if(nums.size()==1) return 1; int an ...
分类:编程语言   时间:2020-06-17 20:26:28    阅读次数:58
一个写得很shabi的differ
#include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <cstdlib> #include <string> #include <fstream> using namespace st ...
分类:其他好文   时间:2020-06-17 18:28:12    阅读次数:38
leetcode-----26. 删除排序数组中的重复项
链接:https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/ 代码 class Solution { public: int removeDuplicates(vector<int>& nums) { int k = ...
分类:编程语言   时间:2020-06-17 16:42:35    阅读次数:66
ORBSLAM2代码阅读-loopclosing.cpp
代码 /** * This file is part of ORB-SLAM2. * * Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza) * For more inf ...
分类:其他好文   时间:2020-06-17 13:01:32    阅读次数:45
11651条   上一页 1 ... 52 53 54 55 56 ... 1166 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!