void UpdatingFileModel::finishRefill() { UpdatingModel::finishRefill(); if (dirty) { // note: I/O access saveModelToFile(); dirty = false; } }
bool ThresholdDetection::saveModelToFile(string filename) const{ std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool TimeDomainFeatures::saveModelToFile(const string filename) const{ std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool PostProcessing::saveModelToFile(std::string filename) const{ std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool MovementIndex::saveModelToFile(string filename) const { std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ) { return false; } file.close(); return true; }
bool RBMQuantizer::saveModelToFile(const string filename) const{ std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool TimeseriesBuffer::saveModelToFile(string filename) const { std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ) { return false; } file.close(); return true; }
bool GMM::saveModelToFile(string filename){ std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool MinDist::saveModelToFile(string filename) const{ if( !trained ) return false; std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool LinearRegression::saveModelToFile(string filename){ if( !trained ) return false; std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool DTW::saveModelToFile( string fileName ){ std::fstream file; if(!trained){ errorLog << "saveDTWModelToFile( string fileName ) - Model not trained yet, can not save to file" << endl; return false; } file.open(fileName.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ return false; } file.close(); return true; }
bool DoubleMovingAverageFilter::saveModelToFile( std::string filename ) const{ if( !initialized ){ errorLog << "saveModelToFile(string filename) - The DoubleMovingAverageFilter has not been initialized" << std::endl; return false; } std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ file.close(); return false; } file.close(); return true; }
bool SavitzkyGolayFilter::saveModelToFile( std::string filename ) const{ if( !initialized ){ errorLog << "saveModelToFile(string filename) - The HighPassFilter has not been initialized" << std::endl; return false; } std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ file.close(); return false; } file.close(); return true; }
bool Derivative::saveModelToFile(string filename) const{ if( !initialized ){ errorLog << "saveModelToFile(string filename) - The DeadZone has not been initialized" << endl; return false; } std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ file.close(); return false; } file.close(); return true; }
bool ClassLabelTimeoutFilter::saveModelToFile(string filename) const{ if( !initialized ){ errorLog << "saveModelToFile(string filename) - The ClassLabelTimeoutFilter has not been initialized" << endl; return false; } std::fstream file; file.open(filename.c_str(), std::ios::out); if( !saveModelToFile( file ) ){ file.close(); return false; } file.close(); return true; }
bool MLBase::save(const std::string filename) const { return saveModelToFile( filename ); }