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