示例#1
0
文件: test.cpp 项目: pitybea/pmss
void testDimension(pair<vector<vector<double> >,vector<vector<vector<double> > > > ad,int dim)
{
    auto data=ad.first;
    PMStruc pedmd;
    printf("-------------******************-----(%d)--------**********************\n",dim);
    pedmd.generatePymFromdata(selectVec(data,dim),dim-2);
    givescores(pedmd,dim,false,false);
}
示例#2
0
void PrintAllCombinationsClean(const std::vector<DataType>& arrayNoDup)
{
    std::vector<int>::size_type length = arrayNoDup.size();
    std::vector<int> fromVec(length, 0);
    std::vector<int> toVec(length, 1);
    std::vector<int> selectVec(length, 0);

    std::vector<int>::size_type curDigit;
    do 
    {
        PrintOut(selectVec, arrayNoDup);
        for (curDigit=0;
            curDigit<length && ++selectVec[curDigit]>toVec[curDigit];
            selectVec[curDigit] = fromVec[curDigit], ++curDigit);
    } while (curDigit<length);
}
示例#3
0
文件: test.cpp 项目: pitybea/pmss
int no_pos()
{

    _chdir("E:\\carData\\TrainImages");

    int dim=10;
    auto ad=getAllfeas(dim);
    auto data=ad.first;

    _chdir("E:\\carData\\TestImages\\mytest");



    PMStruc pedmd;

    pedmd.generatePymFromdata(selectVec(data,dim),dim);
    givescores(pedmd,dim,false,true);

    return 0;
}