Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureEqualTo{T}"/> class
 /// </summary>
 /// <param name="valueExtractor">The value extractor</param>
 /// <param name="comparisonValue">The comparison value</param>
 public FeatureEqualTo(FeatureValueExtractor <T> valueExtractor, object comparisonValue)
 {
     _valueExtractor  = valueExtractor;
     _comparisonValue = comparisonValue;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureGreaterThanOrEqual{T}"/> class.
 /// </summary>
 /// <param name="featureValueExtractor">The feature value extractor</param>
 /// <param name="threshold">The threshold</param>
 public FeatureGreaterThanOrEqual(FeatureValueExtractor <T> featureValueExtractor, decimal threshold)
     : base(featureValueExtractor, threshold)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureExtractionVisitor{T}" /> class
 /// </summary>
 /// <param name="featureName">The feature name</param>
 /// <param name="featureExtractor">The feature extractor</param>
 public FeatureExtractionVisitor(string featureName, FeatureValueExtractor <T> featureExtractor)
     : base()
 {
     _featureName      = featureName;
     _featureExtractor = featureExtractor;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MaximumFeatureValue{T}"/> class
 /// </summary>
 /// <param name="featureValueExtractor">The feature value extractor</param>
 public MaximumFeatureValue(FeatureValueExtractor <T> featureValueExtractor)
 {
     this.Reset();
     _featureValueExtractor = featureValueExtractor;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureNotEqualTo{T}" /> class
 /// </summary>
 /// <param name="valueExtractor">The value extractor</param>
 /// <param name="comparisonValue">The comparison value</param>
 public FeatureNotEqualTo(FeatureValueExtractor <T> valueExtractor, object comparisonValue)
     : base(new FeatureEqualTo <T>(valueExtractor, comparisonValue))
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MinimumFeatureValue"/> class
 /// </summary>
 /// <param name="featureName">The feature name</param>
 public MinimumFeatureValue(FeatureValueExtractor <T> featureValueExtractor)
 {
     Reset();
     _featureValueExtractor = featureValueExtractor;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ThresholdFilter{T}"/> class
 /// </summary>
 /// <param name="featureValueExtractor">The feature value extractor</param>
 /// <param name="threshold">The threshold</param>
 public ThresholdFilter(FeatureValueExtractor <T> featureValueExtractor, decimal threshold)
 {
     _featureValueExtractor = featureValueExtractor;
     _threshold             = threshold;
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeatureLessThan{T}"/> class
 /// </summary>
 /// <param name="featureValueExtractor">The feature value extractor</param>
 /// <param name="threshold">The threshold</param>
 public FeatureLessThan(FeatureValueExtractor <T> featureValueExtractor, decimal threshold)
     : base(featureValueExtractor, threshold)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RecordFeatureValues{T}"/> class
 /// </summary>
 /// <param name="featureExtractor">The feature extractor</param>
 public RecordFeatureValues(FeatureValueExtractor <T> featureExtractor)
 {
     this.Reset();
     _featureExtractor = featureExtractor;
 }