SurfaceSplinesModel = class SurfaceSplinesModel(LinearModel) |
|
SurfaceSplinesModel(knots, order=3, copy=None, fixed=None, **kwargs)
Surface splines model of arbitrary order and knot settings.
It is a linear model.
Surface splines are direct product of a splines model in the x-direction with
a splines model in the y-direction.
The number of parameters is
( xknotlength + xorder - 1 ) * ( yknotlength + yorder - 1 )
The SplinesModel has more information about order and knots.
Examples
--------
>>> nxk = 17
>>> nyk = 11
>>> xknots = numpy.arange( nxk , dtype=float ) * 10 # make knots from 0 to 160
>>> yknots = numpy.arange( nyk , dtype=float ) * 10 # make knots from 0 to 100
>>> csm = SurfaceSplinesModel( xknots, yknots, 2 )
>>> print csm.getNumberOfParameters( ) # ( nxk + order - 1 )*( nyk + order - 1 )
216
# ... fitter etc. see Fitter
Category mathematics/Fitting
Attributes
----------
knots : list of array_like
positions of the knots in all dimensions
order : list of ints
order of the splines in all dimensions
models : list of Model
SplinesModels in all dimensions
Attributes from Model
---------------------
npchain, parameters, stdevs, xUnit, yUnit
Attributes from FixedModel
--------------------------
npmax, fixed, parlist, mlist
Attributes from BaseModel
--------------------------
npbase, ndim, priors, posIndex, nonZero,
tiny, deltaP, parNames |
|
- Method resolution order:
- SurfaceSplinesModel
- LinearModel
- Model
- FixedModel
- BaseModel
- builtins.object
Constructor:
- SurfaceSplinesModel( knots, order=3, copy=None, fixed=None, **kwargs )
- Splines on a given set of knots and a given order.
The number of parameters is ( length( knots ) + order - 1 )
Parameters
----------
knots : list of array_like
positions of the knots in all dimensions
order : int or list of ints
order of the splines in all dimensions
copy : SurfaceSplinesModel
model to be copied
fixed : dict
If not None raise AttributeError.
Raises
------
AttributeError : When fixed is not None
Methods defined here:
- baseName()
- Returns a string representation of the model.
- baseParameterName( k )
- Return the name of a parameter.
Parameters
----------
k : int
the kth parameter.
- baseParameterUnit( k )
- Return the unit of a parameter.
Parameters
----------
k : int
the kth parameter.
- basePartial( xdata, params, parlist=None )
- Returns the partials at the input value.
The partials are the powers of x (input) from 0 to degree.
Parameters
----------
xdata : array_like
value at which to calculate the partials
params : array_like
parameters to the model (ignored in LinearModels)
parlist : array_like
not used in this model
- calcNp( knots, order )
- copy()
- Copy method.
Methods inherited from LinearModel:
Methods inherited from Model:
Overloaded operators and aliases
Other methods
- addModel( model )
- appendModel( model, operation )
- assignDF1( partial, i, dpi )
- assignDF2( partial, i, dpi )
- chainLength()
- correctParameters( params )
- derivative( xdata, param, useNum=False )
- divideModel( model )
- domain2Unit( dvalue, kpar=None )
- getIntegralUnit()
- getLimits()
- getLinearIndex()
- getNumberOfParameters()
- getParameterName( k )
- getParameterUnit( k )
- getPrior( k )
- hasLimits( fitindex=None )
- hasPriors( isBound=True )
- isDynamic()
- isMixed()
- isNullModel()
- isolateModel( k )
- multiplyModel( model )
- nextPrior()
- numDerivative( xdata, param )
- numPartial( xdata, param )
- operate( res, pars, next )
- partial( xdata, param, useNum=False )
- partialDomain2Unit( dvalue )
- pipeModel( model )
- pipe_0( dGd, dHdG)
- pipe_1( dGd, dHdG)
- pipe_2( dGd, dHdG)
- pipe_3( dGd, dHdG)
- pipe_4( dGdx, dHdG)
- pipe_5( dGdx, dHdG)
- pipe_6( dGdx, dHdG)
- pipe_7( dGdx, dHdG)
- pipe_8( dGdx, dHdG)
- pipe_9( dGdx, dHdG)
- result( xdata, param=None )
- selectPipe( ndim, ninter, ndout )
- setLimits( lowLimits=None, highLimits=None )
- setPrior( k, prior=None, **kwargs )
- shortName()
- strictNumericDerivative( xdata, param )
- strictNumericPartial( xdata, params, parlist=None )
- subtractModel( model )
- testPartial( xdata, params, silent=True )
- unit2Domain( uvalue, kpar=None )
Methods inherited from FixedModel:
Methods inherited from BaseModel:
|
|