func WithRobustIter(n int) Opt {
	return func(s *state) {
		s.robustIter = n
	}
}
WithRobustIter indicates how many iterations of "robust" (i.e. outlier removal) to do.
The default is 0.
package stl
import (
	"github.com/chewxy/stl/loess"
)
type Config struct {
	Width int
	Jump int
	Fn loess.WeightUpdate
}
type Opt func(*state)
func WithSeasonalConfig(conf Config) Opt {
	return func(s *state) {
		s.sConf = conf
	}
}
func WithTrendConfig(conf Config) Opt {
	return func(s *state) {
		s.tConf = conf
	}
}
func WithLowpassConfig(conf Config) Opt {
	return func(s *state) {
		s.lConf = conf
	}
}