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