DesignProxy

class DesignProxy(*args)

Design matrix cache.

Helps to cache evaluations of the design matrix.

Can be useful for an iterative least squares problem resolution.

Parameters:

x : Sample

Input sample

psi : Basis

Functional basis

Methods

computeDesign(indices) Build the design matrix.
getBasis() Basis accessor.
getClassName() Accessor to the object’s name.
getInputSample() Input sample accessor.
getRowFilter() Row filter accessor.
getSampleSize() Sample size accessor.
getWeight() Weights accessor.
hasRowFilter() Row filter flag accessor.
hasWeight() Weight flag accessor.
setRowFilter(rowFilter) Row filter accessor.
setWeight(weight) Weights accessor.
__init__(*args)
computeDesign(indices)

Build the design matrix.

Parameters:

indices : sequence of int

Indices of the current basis in the global basis

Returns:

psiAk : Matrix

The design matrix

getBasis()

Basis accessor.

Returns:

basis : getBasis

Basis.

getClassName()

Accessor to the object’s name.

Returns:

class_name : str

The object class name (object.__class__.__name__).

getInputSample()

Input sample accessor.

Returns:

inputSample : Sample

Input sample.

getRowFilter()

Row filter accessor.

Returns:

rowFilter : Indices

Sub-indices in of the sample in the current indices

getSampleSize()

Sample size accessor.

Returns:

sampleSize : int

Size of sample accounting for row filter

getWeight()

Weights accessor.

Returns:

weight : Point

Weights on each basis term

hasRowFilter()

Row filter flag accessor.

Returns:

hasRowFilter : bool

Whether sub-indices of the basis are set

hasWeight()

Weight flag accessor.

Returns:

hasWeight : bool

Whether weights are set

setRowFilter(rowFilter)

Row filter accessor.

Parameters:

rowFilter : sequence of int

Sub-indices in of the sample in the current indices

setWeight(weight)

Weights accessor.

Parameters:

weight : sequence of float

Weights on each basis term