/// <summary> /// Returns a clone of this estimator. /// </summary> /// <returns></returns> public object Clone() { GammaPowerEstimator result = new GammaPowerEstimator(Power); result.SetTo(this); return(result); }
/// <summary> /// Sets the state of this estimator from the supplied estimator. /// </summary> /// <param name="value"></param> public void SetTo(GammaPowerEstimator value) { if (this.Power != value.Power) { throw new ArgumentException($"Incompatible powers: this.Power={Power}, value.Power={value.Power}", nameof(value)); } gammaEstimator.SetTo(value.gammaEstimator); }