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); } }
public override void ComputeFeatureForProtocolModel(IFeatureCollectionWrapper <FeatureBase> featureValues) { this.FeatureValue = FeatureMetrics.FeatureMetricAverage(featureValues); this.Weight = WeightMetrics.WeightUsingNormEntropy(featureValues); }
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; } }