LinearFitBasis

Provides a container to build bases of functions for fitting. Asks for a generator for each dimension, which is just a function that takes an integer and returns a basis function at that order. Product functions are taken up to some max order

 

__init__(self, *generators, order=3): 
  • generators: Iterable[function]

    the generating functions for the bases in each dimenion

  • order: int

    the maximum order for the basis functions (currently turning off coupling isn’t possible, but that could come)

 

@property
functions(self): 

 

@property
names(self): 

 

@property
order(self): 

 

construct_basis(self): 

 

fourier_series(x, k): 

 

power_series(x, n): 

Feedback

Examples

Templates

Documentation