/// <summary>
 /// Applies <see cref="LoessSettings.Degree"/> and
 /// <see cref="LoessSettings.Width"/> from <paramref name="settings"/>.
 /// </summary>
 /// <param name="settings"></param>
 /// <returns></returns>
 public LoessInterpolatorBuilder SetSettings(LoessSettings settings)
 {
     _            = settings ?? throw new ArgumentNullException(nameof(settings));
     this._degree = settings.Degree;
     this._width  = settings.Width;
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Applies <see cref="LoessSettings.Degree"/>,
 /// <see cref="LoessSettings.Jump"/> <see cref="LoessSettings.Width"/>
 /// from <paramref name="settings"/>.
 /// </summary>
 /// <param name="settings"></param>
 /// <returns></returns>
 public LoessSmootherBuilder SetSettings(LoessSettings settings)
 {
     _            = settings ?? throw new ArgumentNullException(nameof(settings));
     this._degree = settings.Degree;
     this._jump   = settings.Jump;
     this._width  = settings.Width;
     return(this);
 }
 /// <summary>
 /// Initialises a new instance.
 /// </summary>
 /// <param name="settings"></param>
 /// <param name="dataLength"></param>
 /// <param name="periodicity"></param>
 /// <param name="backwardPeriods"></param>
 /// <param name="forwardPeriods"></param>
 public CyclicSubSeriesSmoother(LoessSettings settings, int dataLength,
                                int periodicity, int backwardPeriods, int forwardPeriods)
     : this(settings.Width, settings.Degree, settings.Jump, dataLength,
            periodicity, backwardPeriods, forwardPeriods)
 {
 }