コード例 #1
0
        public void PreConfig()
        {
            Classifier = new DecisionTreeClassifier(FusionFramework.Classifiers.DecisionTreeLearningAlgorithms.C45Learning);
            Classifier.Load("LDAMyoGYM");
            AccelerometerFeatures = new DataInFeatureOut(AccelerometerSensor.GetConfiguration().Reader, AccelerometerSensor.GetConfiguration().Features);
            GryoFeatures          = new DataInFeatureOut(GyroscopeSensor.GetConfiguration().Reader, GyroscopeSensor.GetConfiguration().Features);
            EMGFeatures           = new DataInFeatureOut(EmgSensor.GetConfiguration().Reader, EmgSensor.GetConfiguration().Features);
            var CombinedFeatures = new FeaturesInFeatureOut(new List <IFusionStrategy>()
            {
                AccelerometerFeatures, GryoFeatures, EMGFeatures
            });

            Decision = new FeaturesInDecisionOut(new List <IFusionStrategy>()
            {
                CombinedFeatures
            }, Classifier);
        }