Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Crystal.ConstrainedWeightedMetrics"/> class.
 /// </summary>
 public ConstrainedWeightedMetrics()
 {
     _measure = new WeightedMetrics();
 }
Ejemplo n.º 2
0
 void Initialize()
 {
     Weight  = 1.0f;
     Measure = new WeightedMetrics();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Crystal.ConstrainedWeightedMetrics"/> class.
 /// </summary>
 /// <param name="pNorm">The p norm.</param>
 /// <param name="lowerBound">The lower bound.</param>
 public ConstrainedWeightedMetrics(float pNorm, float lowerBound = 0f)
 {
     _measure   = new WeightedMetrics(pNorm);
     LowerBound = lowerBound;
 }