Package gmisclib :: Module gpk_lsq :: Class lls_base
[frames] | no frames]

Class lls_base

source code


Instance Methods
 
__init__(self, a, copy=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
set_y(self, y, copy=True) source code
 
y(self, copy=True) source code
 
hat(self, copy=True) source code
 
x(self, y=None, copy=True) source code
 
fit(self, copy=False) source code
 
residual(self) source code
 
variance_about_fit(self)
Returns the estimator of the standard deviation of the data about the fit.
source code
float
eff_n(self)
Returns something like the number of data, except that it looks at their weighting and the structure of the problem.
source code
float
eff_rank(self)
Returns something like the rank of the solution, but rather than counting how many dimensions can be solved at all, it reports how many dimensions can be solved with a relatively good accuracy.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, a, copy=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

x(self, y=None, copy=True)

source code 
Raises:
  • numpy.linalg.linalg.LinAlgError - when the matrix is singular.

fit(self, copy=False)

source code 
Raises:
  • numpy.linalg.linalg.LinAlgError - when the matrix is singular.

variance_about_fit(self)

source code 

Returns the estimator of the standard deviation of the data about the fit.

Returns:
numpy.ndarray with shape=(q,). Each entry corresponds to one of the q sets of equations that are being fit.

eff_n(self)

source code 

Returns something like the number of data, except that it looks at their weighting and the structure of the problem. It counts how many data have a relatively large effect on the solution, and if a datum has little influence, it doesn't count for much.

Returns: float