示例#1
0
 /// <summary>
 /// 
 /// </summary>
 public TrtModel()
 {
     _treatmentConfig = new TreatmentConfig();
     _selectedFeatures = new ObservableCollection<string>();
     _selectedFeatures.CollectionChanged += SelectedFeaturesChanged;
     _pipeline = new Pipeline();
     _preTreatedFrames = new ObservableCollection<Frame>();
 }
示例#2
0
 public WindowMaker(TreatmentConfig treatmentConfig)
     : base(20, true, true)
 {
     this.config = treatmentConfig;
 }
示例#3
0
        public void Copy(TreatmentConfig sourceConfig)
        {
            contractionTimePercentage = sourceConfig.contractionTimePercentage;

            if (features == null)
                features = new List<string>();
            else features.Clear();

            if(sourceConfig.features!=null)
            foreach (string item in sourceConfig.features)
            {
                features.Add(item);
            }

            sampleFreq = sourceConfig.sampleFreq;
            trainingSetSize = sourceConfig.trainingSetSize;
            validationSetSize = sourceConfig.validationSetSize;
            windowLength = sourceConfig.windowLength;
            windowOffset = sourceConfig.windowOffset;
        }
示例#4
0
 public WindowMaker(TreatmentConfig treatmentConfig, Recording usedRecording)
     : base(20, true, true)
 {
     this.config = treatmentConfig;
     this.recording = usedRecording;
 }