__init__(self,
covariate,
covariateName,
freqList,
freqNameList,
maxNharmonics=1,
covMatrix=None)
(Constructor)
| source code
|
Initialiser of HarmonicModel class, with *known* frequencies.
Example:
>>> time = linspace(0,10,100)
>>> hm = HarmonicModel(time, "t", [2.34, 8.9], ["f_1", "f_2"], 1)
- Parameters:
covariate (ndarray) - an array of size N with the covariate values, where N is the
number of observations.
covariateName (string) - a (preferably short) name of the covariate. E.g. "t",
or "x".
freqList (list) - the frequencies (unit: inverse unit of covariate)
freqNameList (list) - the (preferably short) names of the frequencies. E.g.
"f_1" or "nu_1".
maxNharmonics (list) - integer values > 1. The number of harmonics for each
frequency. For example: 1 : f_1, f_2, ... 2 : f_1, 2*f_1, f_2,
2*f_2, ...
covMatrix (ndarray) - square array containing the covariance matrix of the
observations. Weights, and correlations can hence be taken into
account.
- Returns: HarmonicModel
- an instance of HarmonicModel, subclass of LinearModel
- Overrides:
object.__init__
|