Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Crystal.ConstrainedWeightedMetrics"/> class.
 /// </summary>
 public ConstrainedWeightedMetrics()
 {
     _measure = new WeightedMetrics();
 }
Esempio n. 2
0
 void Initialize()
 {
     Weight  = 1.0f;
     Measure = new WeightedMetrics();
 }
Esempio 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;
 }