• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ copyBaseVariables函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中copyBaseVariables函数的典型用法代码示例。如果您正苦于以下问题:C++ copyBaseVariables函数的具体用法?C++ copyBaseVariables怎么用?C++ copyBaseVariables使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了copyBaseVariables函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: copyBaseVariables

//Clone method
bool FFTFeatures::clone(const FeatureExtraction *featureExtraction){ 
        
    if( featureExtraction == NULL ) return false;
    
    if( this->getFeatureExtractionType() == featureExtraction->getFeatureExtractionType() ){
        
        FFTFeatures *ptr = (FFTFeatures*)featureExtraction;
            
        this->fftWindowSize = ptr->fftWindowSize;
        this->numChannelsInFFTSignal = ptr->numChannelsInFFTSignal;
        this->computeMaxFreqFeature = ptr->computeMaxFreqFeature;
        this->computeMaxFreqSpectrumRatio = ptr->computeMaxFreqSpectrumRatio;
        this->computeCentroidFeature = ptr->computeCentroidFeature;
        this->computeTopNFreqFeatures = ptr->computeTopNFreqFeatures;
        this->N = ptr->N;
        this->maxFreqFeature = ptr->maxFreqFeature;
        this->maxFreqSpectrumRatio = ptr->maxFreqSpectrumRatio;
        this->centroidFeature = ptr->centroidFeature;
        
        copyBaseVariables((FeatureExtraction*)this, featureExtraction);
    }
    
    errorLog << "clone(FeatureExtraction *featureExtraction) -  FeatureExtraction Types Do Not Match!" << endl;
    
    return false;
}
开发者ID:cdesch,项目名称:gesture-recognition-toolkit,代码行数:27,代码来源:FFTFeatures.cpp


示例2: clearWeakClassifiers

bool AdaBoost::deepCopyFrom(const Classifier *classifier){
    
    if( classifier == NULL ){
        errorLog << "deepCopyFrom(const Classifier *classifier) - The classifier pointer is NULL!" << endl;
        return false;
    }
    
    if( this->getClassifierType() == classifier->getClassifierType() ){
        //Clone the AdaBoost values
        AdaBoost *ptr = (AdaBoost*)classifier;
        
        //Clear the current weak classifiers
        clearWeakClassifiers();
        
        this->numBoostingIterations = ptr->numBoostingIterations;
        this->predictionMethod = ptr->predictionMethod;
        this->models = ptr->models;
        
        if( ptr->weakClassifiers.size() > 0 ){
            for(UINT i=0; i<ptr->weakClassifiers.size(); i++){
                WeakClassifier *weakClassiferPtr = ptr->weakClassifiers[i]->createNewInstance();
                weakClassifiers.push_back( weakClassiferPtr );
            }
        }
        
        //Clone the classifier variables
        return copyBaseVariables( classifier );
    }
    return false;
}
开发者ID:Amos-zq,项目名称:grt,代码行数:30,代码来源:AdaBoost.cpp


示例3: copyBaseVariables

bool SVM::deepCopyFrom(const Classifier *classifier){
    
    if( classifier == NULL ) return false;
    
    if( this->getClassifierType() == classifier->getClassifierType() ){
        SVM *ptr = (SVM*)classifier;
        
        this->clear();
        
        //SVM variables
        this->problemSet = false;
        this->model = ptr->deepCopyModel();
        this->deepCopyParam( ptr->param, this->param );
        this->numInputDimensions = ptr->numInputDimensions;
        this->kFoldValue = ptr->kFoldValue;
        this->classificationThreshold = ptr->classificationThreshold;
        this->crossValidationResult = ptr->crossValidationResult;
        this->useAutoGamma = ptr->useAutoGamma;
        this->useCrossValidation = ptr->useCrossValidation;
        
        //Classifier variables
        return copyBaseVariables( classifier );
    }
    
    return false;
}
开发者ID:AdriannaGmz,项目名称:gesture-recognition-toolkit,代码行数:26,代码来源:SVM.cpp


示例4: copyBaseVariables

GaussianMixtureModels::GaussianMixtureModels(const GaussianMixtureModels &rhs){
    
    classType = "GaussianMixtureModels";
    clustererType = classType;
    debugLog.setProceedingText("[DEBUG GaussianMixtureModels]");
    errorLog.setProceedingText("[ERROR GaussianMixtureModels]");
    trainingLog.setProceedingText("[TRAINING GaussianMixtureModels]");
    warningLog.setProceedingText("[WARNING GaussianMixtureModels]");
    
    if( this != &rhs ){
        
        this->numTrainingSamples = rhs.numTrainingSamples;
        this->loglike = rhs.loglike;
        this->mu = rhs.mu;
        this->resp = rhs.resp;
        this->frac = rhs.frac;
        this->lndets = rhs.lndets;
        this->det = rhs.det;
        this->sigma = rhs.sigma;
        this->invSigma = rhs.invSigma;
        
        //Clone the Clusterer variables
        copyBaseVariables( (Clusterer*)&rhs );
    }
    
}
开发者ID:BryanBo-Cao,项目名称:grt,代码行数:26,代码来源:GaussianMixtureModels.cpp


示例5: copyBaseVariables

bool Derivative::deepCopyFrom(const PreProcessing *preProcessing){
    
    if( preProcessing == NULL ) return false;
    
    if( this->getPreProcessingType() == preProcessing->getPreProcessingType() ){
        
        Derivative *ptr = (Derivative*)preProcessing;
        
        //Clone the Derivative values 
        this->derivativeOrder = ptr->derivativeOrder;
        this->filterSize = ptr->filterSize;
        this->delta = ptr->delta;
        this->filterData = ptr->filterData;
        this->filter = ptr->filter;
        this->yy = ptr->yy;
        this->yyy = ptr->yyy;
        
        //Clone the base class variables
        return copyBaseVariables( preProcessing );
    }
    
    errorLog << "clone(const PreProcessing *preProcessing) -  PreProcessing Types Do Not Match!" << endl;
    
    return false;
}
开发者ID:Mr07,项目名称:MA-Gesture-Recognition,代码行数:25,代码来源:Derivative.cpp


示例6: copyBaseVariables

HighPassFilter::HighPassFilter(const HighPassFilter &rhs){
    this->filterFactor = rhs.filterFactor;
    this->gain = rhs.gain;
	this->xx = rhs.xx;
    this->yy = rhs.yy;
    copyBaseVariables( (PreProcessing*)&rhs );
}
开发者ID:pixelmaid,项目名称:evodraw,代码行数:7,代码来源:HighPassFilter.cpp


示例7: copyBaseVariables

bool DTW::deepCopyFrom(const Classifier *classifier){
    
    if( classifier == NULL ) return false;
    
    if( this->getClassifierType() == classifier->getClassifierType() ){
        
        DTW *ptr = (DTW*)classifier;
        this->templatesBuffer = ptr->templatesBuffer;
        this->distanceMatrices = ptr->distanceMatrices;
        this->warpPaths = ptr->warpPaths;
        this->rangesBuffer = ptr->rangesBuffer;
        this->continuousInputDataBuffer = ptr->continuousInputDataBuffer;
        this->numTemplates = ptr->numTemplates;
        this->rejectionMode = ptr->rejectionMode;
        this->useSmoothing = ptr->useSmoothing;
        this->useZNormalisation = ptr->useZNormalisation;
        this->constrainZNorm = ptr->constrainZNorm;
        this->constrainWarpingPath = ptr->constrainWarpingPath;
        this->trimTrainingData = ptr->trimTrainingData;
        this->zNormConstrainThreshold = ptr->zNormConstrainThreshold;
        this->radius = ptr->radius;
        this->offsetUsingFirstSample = ptr->offsetUsingFirstSample;
        this->trimThreshold = ptr->trimThreshold;
        this->maximumTrimPercentage = ptr->maximumTrimPercentage;
        this->smoothingFactor = ptr->smoothingFactor;
        this->distanceMethod = ptr->distanceMethod;
        this->rejectionMode = ptr->rejectionMode;
        this->averageTemplateLength = ptr->averageTemplateLength;
        
	    //Copy the classifier variables
		return copyBaseVariables( classifier );
    }
    return false;
}
开发者ID:gaurav38,项目名称:HackDuke13,代码行数:34,代码来源:DTW.cpp


示例8: copyBaseVariables

KMeans::KMeans(const KMeans &rhs){
    
    classType = "KMeans";
    clustererType = classType;
    debugLog.setProceedingText("[DEBUG KMeans]");
    errorLog.setProceedingText("[ERROR KMeans]");
    trainingLog.setProceedingText("[TRAINING KMeans]");
    warningLog.setProceedingText("[WARNING KMeans]");
    
    if( this != &rhs ){
        
        this->numTrainingSamples = rhs.numTrainingSamples;
        this->nchg = rhs.nchg;
        this->computeTheta = rhs.computeTheta;
        this->finalTheta = rhs.finalTheta;
        this->clusters = rhs.clusters;
        this->assign = rhs.assign;
        this->count = rhs.count;
        this->thetaTracker = rhs.thetaTracker;
        
        //Clone the Clusterer variables
        copyBaseVariables( (Clusterer*)&rhs );
    }
    
}
开发者ID:BryanBo-Cao,项目名称:grt,代码行数:25,代码来源:KMeans.cpp


示例9: copyBaseVariables

bool SavitzkyGolayFilter::deepCopyFrom(const PreProcessing *preProcessing){
    
    if( preProcessing == NULL ) return false;
    
    if( this->getPreProcessingType() == preProcessing->getPreProcessingType() ){
        
        SavitzkyGolayFilter *ptr = (SavitzkyGolayFilter*)preProcessing;
        
        //Clone the SavitzkyGolayFilter values 
        this->numPoints = ptr->numPoints;
        this->numLeftHandPoints = ptr->numLeftHandPoints;
        this->numRightHandPoints = ptr->numRightHandPoints;
        this->derivativeOrder = ptr->derivativeOrder;
        this->smoothingPolynomialOrder = ptr->smoothingPolynomialOrder;
        this->data = ptr->data;
        this->yy = ptr->yy;
        this->coeff = ptr->coeff;
        
        //Clone the base class variables
        return copyBaseVariables( preProcessing );
    }
    
    errorLog << "clone(PreProcessing *preProcessing) -  PreProcessing Types Do Not Match!" << std::endl;
    
    return false;
}
开发者ID:sboettcher,项目名称:grt,代码行数:26,代码来源:SavitzkyGolayFilter.cpp


示例10: clear

RandomForests& RandomForests::operator=(const RandomForests &rhs){
    if( this != &rhs ){
        //Clear this tree
        clear();
        
        //Copy the base classifier variables
        if( copyBaseVariables( (Classifier*)&rhs ) ){
            
            //Deep copy the main node
            if( this->decisionTreeNode != NULL ){
                delete decisionTreeNode;
                decisionTreeNode = NULL;
            }
            this->decisionTreeNode = rhs.deepCopyDecisionTreeNode();
            
            if( rhs.getTrained() ){
                //Deep copy the forest
                for(UINT i=0; i<rhs.forest.size(); i++){
                    this->forest.push_back( rhs.forest[i]->deepCopy() );
                }
            }
            
            this->forestSize = rhs.forestSize;
            this->numRandomSplits = rhs.numRandomSplits;
            this->minNumSamplesPerNode = rhs.minNumSamplesPerNode;
            this->maxDepth = rhs.maxDepth;
            this->removeFeaturesAtEachSpilt = rhs.removeFeaturesAtEachSpilt;
            this->bootstrappedDatasetWeight = rhs.bootstrappedDatasetWeight;
            this->trainingMode = rhs.trainingMode;
            
        }else errorLog << "deepCopyFrom(const Classifier *classifier) - Failed to copy base variables!" << endl;
	}
	return *this;
}
开发者ID:hal2001,项目名称:grt,代码行数:34,代码来源:RandomForests.cpp


示例11: copyBaseVariables

bool Node::deepCopyFrom(const Node *node) {
    //cout<<"node deep copy attempt"<<endl;

    if( node == NULL ){
        return false;
    }
    
    copyBaseVariables(node);
    for(int i=0;i<node->m_Children.size();i++){    //Recursively deep copy the left child
        
        Node* c = node->m_Children[i]->createNewInstance();
        if(c ==NULL){
            //cout<<"child not copied"<<endl;
            return false;
  
        }
        //Validate that the classifier was cloned correctly
        if( !c->deepCopyFrom( node->m_Children[i] ) ){
            delete c;
            c=NULL;
            //cout<<"child not copied because of deep copy"<<endl;
            return false;
        }
        this->m_Children.push_back(c);
        c->m_Parent = this;
        //cout<<"child copy success at "<<i<<endl;

        //this->leftChild->parent = node;
    }
    return true;
}
开发者ID:pixelmaid,项目名称:evodraw,代码行数:31,代码来源:Node.cpp


示例12: copyBaseVariables

bool RegressionTree::deepCopyFrom(const Regressifier *regressifier){
    
    if( regressifier == NULL ) return false;
    
    if( this->getRegressifierType() == regressifier->getRegressifierType() ){
        
        RegressionTree *ptr = (RegressionTree*)regressifier;
        
        //Clear this tree
        this->clear();
        
        if( ptr->getTrained() ){
            //Deep copy the tree
            this->tree = dynamic_cast< RegressionTreeNode* >( ptr->deepCopyTree() );
        }
        
        this->numSplittingSteps = ptr->numSplittingSteps;
        this->minNumSamplesPerNode = ptr->minNumSamplesPerNode;
        this->maxDepth = ptr->maxDepth;
        this->removeFeaturesAtEachSpilt = ptr->removeFeaturesAtEachSpilt;
        this->trainingMode = ptr->trainingMode;
        this->minRMSErrorPerNode = ptr->minRMSErrorPerNode;
        
        //Copy the base variables
        return copyBaseVariables( regressifier );
    }
    return false;
}
开发者ID:sboettcher,项目名称:grt,代码行数:28,代码来源:RegressionTree.cpp


示例13: copyBaseVariables

bool RandomForests::deepCopyFrom(const Classifier *classifier){
    
    if( classifier == NULL ) return false;
    
    if( this->getClassifierType() == classifier->getClassifierType() ){
        
        RandomForests *ptr = (RandomForests*)classifier;
        
        //Clear this tree
        this->clear();
        
        if( ptr->getTrained() ){
            //Deep copy the forest
            for(UINT i=0; i<ptr->forest.size(); i++){
                this->forest.push_back( ptr->forest[i]->deepCopyTree() );
            }
        }
        
        this->forestSize = ptr->forestSize;
        this->numRandomSplits = ptr->numRandomSplits;
        this->minNumSamplesPerNode = ptr->minNumSamplesPerNode;
        this->maxDepth = ptr->maxDepth;
        
        //Copy the base classifier variables
        return copyBaseVariables( classifier );
    }
    return false;
}
开发者ID:Mr07,项目名称:MA-Gesture-Recognition,代码行数:28,代码来源:RandomForests.cpp


示例14: copyBaseVariables

bool SwipeDetector::deepCopyFrom(const Classifier *classifier) {

    if( classifier == NULL ) return false;

    if( this->getClassifierType() == classifier->getClassifierType() ) {

        SwipeDetector *ptr = (SwipeDetector*)classifier;

        this->firstSample = ptr->firstSample;
        this->swipeDetected = ptr->swipeDetected;
        this->contextInput = ptr->contextInput;
        this->swipeIndex = ptr->swipeIndex;
        this->swipeDirection = ptr->swipeDirection;
        this->contextFilterSize = ptr->contextFilterSize;
        this->swipeIntegrationCoeff = ptr->swipeIntegrationCoeff;
        this->movementIntegrationCoeff = ptr->movementIntegrationCoeff;
        this->swipeThreshold = ptr->swipeThreshold;
        this->hysteresisThreshold = ptr->hysteresisThreshold;
        this->swipeVelocity = ptr->swipeVelocity;
        this->movementVelocity = ptr->movementVelocity;
        this->movementThreshold = ptr->movementThreshold;
        this->contextFilteredValue = ptr->contextFilteredValue;
        this->lastX = ptr->lastX;
        this->thresholdDetector = ptr->thresholdDetector;
        this->contextFilter = ptr->contextFilter;

        //Classifier variables
        return copyBaseVariables( classifier );
    }

    return false;
}
开发者ID:sgrignard,项目名称:grt,代码行数:32,代码来源:SwipeDetector.cpp


示例15: copyBaseVariables

LeakyIntegrator& LeakyIntegrator::operator=(const LeakyIntegrator &rhs){
    if( this != &rhs ){
        this->leakRate = rhs.leakRate;
        this->y = rhs.y;
        copyBaseVariables( (PreProcessing*)&rhs );
    }
    return *this;
}
开发者ID:eboix,项目名称:Myo-Gesture,代码行数:8,代码来源:LeakyIntegrator.cpp


示例16: copyBaseVariables

DeadZone& DeadZone::operator=(const DeadZone &rhs){
	if(this!=&rhs){
        this->lowerLimit = rhs.lowerLimit;
        this->upperLimit = rhs.upperLimit;
        copyBaseVariables( (PreProcessing*)&rhs );
	}
	return *this;
}
开发者ID:MarkusKonk,项目名称:Geographic-Interaction,代码行数:8,代码来源:DeadZone.cpp


示例17: copyBaseVariables

LowPassFilter& LowPassFilter::operator=(const LowPassFilter &rhs){
	if(this!=&rhs){
        this->filterFactor = rhs.filterFactor;
        this->gain = rhs.gain;
		this->yy = rhs.yy;
        copyBaseVariables( (PreProcessing*)&rhs );
	}
	return *this;
}
开发者ID:pixelmaid,项目名称:evodraw,代码行数:9,代码来源:LowPassFilter.cpp


示例18: copyBaseVariables

TimeseriesBuffer& TimeseriesBuffer::operator=(const TimeseriesBuffer &rhs){
    if(this!=&rhs){
        this->bufferSize = rhs.bufferSize;
        this->dataBuffer = rhs.dataBuffer;
        
        copyBaseVariables( (FeatureExtraction*)&rhs );
    }
    return *this;
}
开发者ID:SouadArij,项目名称:gestures-recognizer,代码行数:9,代码来源:TimeseriesBuffer.cpp


示例19: copyBaseVariables

LogisticRegression& LogisticRegression::operator=(const LogisticRegression &rhs){
	if( this != &rhs ){
        this->w0 = rhs.w0;
        this->w = rhs.w;
        
        //Copy the base variables
        copyBaseVariables( (Regressifier*)&rhs );
	}
	return *this;
}
开发者ID:Mr07,项目名称:MA-Gesture-Recognition,代码行数:10,代码来源:LogisticRegression.cpp


示例20: copyBaseVariables

Softmax& Softmax::operator=(const Softmax &rhs){
    if( this != &rhs ){
        this->batchSize = rhs.batchSize;
        this->models = rhs.models;
        
        //Copy the base classifier variables
        copyBaseVariables( (Classifier*)&rhs );
    }
    return *this;
}
开发者ID:nickgillian,项目名称:grt,代码行数:10,代码来源:Softmax.cpp



注:本文中的copyBaseVariables函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ copyData函数代码示例发布时间:2022-05-30
下一篇:
C++ copyAmount函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap