Crystal AI  1.0.0
Crystal.ConstrainedChebyshev Class Reference

Calculates the Chebyshev measure https://en.wikipedia.org/wiki/Chebyshev_distance for all elements whose P:Crystal.Utility.Combined is above the set lower bound. More...

Inheritance diagram for Crystal.ConstrainedChebyshev:
Crystal.IMeasure Crystal.IAiPrototype< IMeasure >

Public Member Functions

float Calculate (ICollection< Utility > elements)
 Calculate the constrained Chebyshev measure for the given set of elements. More...
 
IMeasure Clone ()
 Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state! More...
 
 ConstrainedChebyshev ()
 Initializes a new instance of the ConstrainedChebyshev class. More...
 
 ConstrainedChebyshev (float lowerBound)
 Initializes a new instance of the ConstrainedChebyshev class. More...
 
- Public Member Functions inherited from Crystal.IAiPrototype< IMeasure >
Clone ()
 Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state! More...
 

Properties

float LowerBound [get, set]
 If the combined value of any utility is below this, the value of this measure will be 0. More...
 

Detailed Description

Calculates the Chebyshev measure https://en.wikipedia.org/wiki/Chebyshev_distance for all elements whose P:Crystal.Utility.Combined is above the set lower bound.

See also
T:Crystal.IMeasure

Constructor & Destructor Documentation

Crystal.ConstrainedChebyshev.ConstrainedChebyshev ( )
inline

Initializes a new instance of the ConstrainedChebyshev class.

Crystal.ConstrainedChebyshev.ConstrainedChebyshev ( float  lowerBound)
inline

Initializes a new instance of the ConstrainedChebyshev class.

Parameters
lowerBoundThe lower bound.

Member Function Documentation

float Crystal.ConstrainedChebyshev.Calculate ( ICollection< Utility elements)
inline

Calculate the constrained Chebyshev measure for the given set of elements.

Parameters
elements
Returns

Implements Crystal.IMeasure.

IMeasure Crystal.ConstrainedChebyshev.Clone ( )
inline

Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state!

Returns

Property Documentation

float Crystal.ConstrainedChebyshev.LowerBound
getset

If the combined value of any utility is below this, the value of this measure will be 0.


The documentation for this class was generated from the following file: