incline.build

incline.build(name, **kwargs)[source]

Construct a smoother by name.

Replaces the string match that previously lived in estimate_trend and needed a new branch for every method.

Parameters:
  • name (str) – Registered smoother name.

  • **kwargs (Any) – Passed to the smoother’s constructor.

Returns:

The smoother.

Raises:

ValueError – If the name is not registered.

Return type:

Smoother