comparison transform/FeatureExtractionModelTransformer.cpp @ 1658:5b7b01da430a single-point

Start updating SparseOneDimensionalModel
author Chris Cannam
date Wed, 20 Mar 2019 16:22:13 +0000
parents 7a56bb85030f
children 565575463752
comparison
equal deleted inserted replaced
1657:31b46a5647db 1658:5b7b01da430a
975 975
976 SparseOneDimensionalModel *model = 976 SparseOneDimensionalModel *model =
977 getConformingOutput<SparseOneDimensionalModel>(n); 977 getConformingOutput<SparseOneDimensionalModel>(n);
978 if (!model) return; 978 if (!model) return;
979 979
980 model->addPoint(SparseOneDimensionalModel::Point 980 model->add(Event(frame, feature.label.c_str()));
981 (frame, feature.label.c_str()));
982 981
983 } else if (isOutput<SparseTimeValueModel>(n)) { 982 } else if (isOutput<SparseTimeValueModel>(n)) {
984 983
985 SparseTimeValueModel *model = 984 SparseTimeValueModel *model =
986 getConformingOutput<SparseTimeValueModel>(n); 985 getConformingOutput<SparseTimeValueModel>(n);