public override void ComputeFeatureForProtocolModel(IFeatureCollectionWrapper <FeatureBase> featureValues)
 {
     this.FeatureValue = FeatureMetrics.FeatureMetricAverage(featureValues);
     this.Weight       = WeightMetrics.WeightUsingStandarDeviation(featureValues);
     if (this.FeatureValue < 50)
     {
         this.Weight = 1;
     }
 }
예제 #2
0
 public override void ComputeFeatureForProtocolModel(IFeatureCollectionWrapper <FeatureBase> featureValues)
 {
     this.FeatureValue = FeatureMetrics.FeatureMetricAverage(featureValues);
     if (this.FeatureValue == 0)
     {
         this.Weight = 0;
     }
     else
     {
         this.Weight = WeightMetrics.WeightUsingNormEntropy(featureValues);
     }
 }