ConvolveBase

class sofia_redux.toolkit.convolve.base.ConvolveBase(*args, error=1, mask=None, stats=True, robust=0.0, eps=0.01, maxiter=10, do_error=False, axes=None, ignorenans=True, **kwargs)[source]

Bases: Model

Convolution class allowing error propagation.

Attributes Summary

error

Don't create the error unless asked for or already present

masked

residuals

result

Methods Summary

__call__(*independent_values[, dovar])

Evaluate the model

evaluate(_[, dovar])

Place holder

initial_fit()

The initial fit

refit_mask(mask[, covar])

Place holder

replace_masked_error()

replace_masked_samples(samples, mask[, get_tri])

Attributes Documentation

error

Don’t create the error unless asked for or already present

masked
residuals
result

Methods Documentation

__call__(*independent_values, dovar=False)[source]

Evaluate the model

Parameters:
samplesn-tuple of array_like (shape)

n-features of independent variables.

dovarbool, optional

If True return the variance of the fit in addition to the fit.

Returns:
fit, [variance]numpy.ndarray (shape), [numpy.ndarray (shape)]

The output fit and optionally, the variance.

evaluate(_, dovar=False)[source]

Place holder

initial_fit()[source]

The initial fit

refit_mask(mask, covar=False)[source]

Place holder

replace_masked_error()[source]
static replace_masked_samples(samples, mask, get_tri=False)[source]