Example #1
0
 public override void ComputeFeatureForProtocolModel(IFeatureCollectionWrapper <FeatureBase> featureValues)
 {
     this.FeatureValue = FeatureMetrics.FeatureMetricAverage(featureValues);
     if (this.FeatureValue != 1 && this.FeatureValue > 0)
     {
         this.Weight = 1;
     }
     else if (this.FeatureValue == 1)
     {
         this.Weight = 0;
     }
     else
     {
         this.Weight = WeightMetrics.WeightUsingNormEntropy(featureValues);
     }
 }
Example #2
0
 public override void ComputeFeatureForProtocolModel(IFeatureCollectionWrapper <FeatureBase> featureValues)
 {
     this.FeatureValue = FeatureMetrics.FeatureMetricAverage(featureValues);
     this.Weight       = WeightMetrics.WeightUsingNormEntropy(featureValues);
 }
Example #3
0
 public override void ComputeFeatureForProtocolModel(IFeatureCollectionWrapper <FeatureBase> featureValues)
 {
     this.FeatureValue = FeatureMetrics.FeatureMetricAverage(featureValues);
     this.Weight       = WeightMetrics.WeightUsingStandarDeviation(featureValues);
     //if(this.FeatureValue == 0) { this.Weight = 0.5; }
 }