//Methods /// <summary> /// Updates the cluster error statistics. /// </summary> /// <param name="nrmComputedValue">The normalized value computed by the cluster.</param> /// <param name="nrmIdealValue">The normalized ideal value.</param> /// <param name="natComputedValue">The naturalized value computed by the cluster.</param> /// <param name="natIdealValue">The naturalized ideal value.</param> public void Update(double nrmComputedValue, double nrmIdealValue, double natComputedValue, double natIdealValue) { NatPrecissionErrStat.AddSample(Math.Abs(natComputedValue - natIdealValue)); NrmPrecissionErrStat.AddSample(Math.Abs(nrmComputedValue - nrmIdealValue)); BinaryErrStat?.Update(nrmComputedValue, nrmIdealValue); return; }
/// <summary> /// Updates cluster statistics /// </summary> /// <param name="nrmComputedValue">Normalized value computed by the cluster</param> /// <param name="nrmIdealValue">Normalized ideal value</param> /// <param name="natComputedValue">Naturalized value computed by the cluster</param> /// <param name="natIdealValue">Naturalized ideal value</param> public void Update(double nrmComputedValue, double nrmIdealValue, double natComputedValue, double natIdealValue) { NatPrecissionErrStat.AddSampleValue(Math.Abs(natComputedValue - natIdealValue)); NrmPrecissionErrStat.AddSampleValue(Math.Abs(nrmComputedValue - nrmIdealValue)); if (TaskType == CommonEnums.TaskType.Classification) { BinaryErrStat.Update(nrmComputedValue, nrmIdealValue); } return; }