How best to enfold stable parameter values


#1

A very general function for short-windowed timeseries smoothing would have a handful of algorithmically subselective params and other args that influence the behavior. Most uses/users will adopt a few styles and keep using them. There are still active parameters (window size, strength of the recent over the past), just fewer. And that makes their use easier.

Instead of encouraging the users to wrap their decisions in an outer function and so lower the arg count, I want to provide a way for the functions themselves [or their associated cleanup crew] to consume these decided values and provide the simplified interface thereafter.

Autogeneration of partial applicands or type-with-memory realizing value-persistant closures seem plausible paths. Others may be better, and in any event I do not know the key steps for either. Ideas?


#2

Keyword arguments?


#3

I like that.