Skip to content

ENH: New interface for piecewise polynomials #5

@MImmesberger

Description

@MImmesberger

Is your feature request related to a problem?

Here is a GETTSIM example on how to create a PiecewisePolynomialParam

increased_behindertenpauschbetrag = PiecewisePolynomialParam(
    value=PiecewisePolynomialParamValue(
        thresholds=np.array([-np.inf, 0.5, np.inf]),
        intercepts=np.array([0.0, 3000.0]),
        rates=np.array([[0.0, 0.0]]),
    ),
)

Note that the rates argument is of shape (1,2) instead of (3,) / (2,).

It would be much more user friendly to make this (2,1), even if we have to reshape it later internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions