astromodels.functions.functions_1D.polynomials module
- class astromodels.functions.functions_1D.polynomials.Constant(**kwargs)[source]
Bases:
Function1D
description :
Return k
latex : $ k $
parameters :
k :
desc : Constant value initial value : 0
- static info()
- class astromodels.functions.functions_1D.polynomials.Cubic(**kwargs)[source]
Bases:
Function1D
description :
A cubic function
latex : $ a + b cdot x + c cdot x^2 + d cdot x^3$
parameters :
a :
desc : coefficient initial value : 1
b :
desc : coefficient initial value : 1
c :
desc : coefficient initial value : 1
d :
desc : coefficient initial value : 1
- static info()
- class astromodels.functions.functions_1D.polynomials.Line(**kwargs)[source]
Bases:
Function1D
description :
A linear function
latex : $ b * x + a $
parameters :
a :
desc : intercept initial value : 0
b :
desc : coeff initial value : 1
- static info()
- class astromodels.functions.functions_1D.polynomials.Quadratic(**kwargs)[source]
Bases:
Function1D
description :
A Quadratic function
latex : $ a + b cdot x + c cdot x^2 $
parameters :
a :
desc : coefficient initial value : 1
b :
desc : coefficient initial value : 1
c :
desc : coefficient initial value : 1
- static info()
- class astromodels.functions.functions_1D.polynomials.Quartic(**kwargs)[source]
Bases:
Function1D
description :
A quartic function
latex : $ a + b cdot x + c cdot x^2 + d cdot x^3 + e cdot x^4$
parameters :
a :
desc : coefficient initial value : 1
b :
desc : coefficient initial value : 1
c :
desc : coefficient initial value : 1
d :
desc : coefficient initial value : 1
e :
desc : coefficient initial value : 1
- static info()
- astromodels.functions.functions_1D.polynomials.get_polynomial(order: int) Function1D [source]
get a polynomial function of order
- Parameters:
order (int) – the order of the polynomical
- Returns: