Documentation ¶
Index ¶
- func ViewMatrix(m mat.Matrix) string
- type MulTS
- func (ts *MulTS) DepVars(from, to int) (mat.Matrix, error)
- func (ts *MulTS) IndepVars(from, to int) (mat.Matrix, error)
- func (ts *MulTS) PossibleFrame() (int, int)
- func (ts *MulTS) SetData(data []float64, nvar int, vnames []string) error
- func (ts *MulTS) SetDepByCol(app bool, deps ...int) error
- func (ts *MulTS) SetDepByName(app bool, deps ...string) error
- func (ts *MulTS) SetFreq(freq int, start, end []int) error
- func (ts *MulTS) SetIndepByCol(app bool, indep int, lag int) error
- func (ts *MulTS) SetIndepByName(app bool, indep string, lag int) error
- func (ts *MulTS) SetLag(k int) error
- func (ts *MulTS) SetNames(vnames []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MulTS ¶
type MulTS struct {
// contains filtered or unexported fields
}
MulTS is a struct for the multivariate time series
func (*MulTS) DepVars ¶
DepVars returns (copies) a matrix containing the dependent variables subset from "from" to but without "to"
func (*MulTS) PossibleFrame ¶
PossibleFrame returns the possible time frame from and to with the largest sample size
func (*MulTS) SetData ¶
SetData sets the data, start, end and frequency data is a slice of float64, row first sorted nvar is the number of variables vnames contains the names of the variables, nil for no names
func (*MulTS) SetDepByCol ¶
SetDepByCol sets dependent variables by column numbers
func (*MulTS) SetDepByName ¶
SetDepByName appends dependent variables by variable names
func (*MulTS) SetFreq ¶
SetFreq sets the frequency of the time series start and end are 2-slices of int representing the start and end time points if start and/or end are nil, they will be inferred
func (*MulTS) SetIndepByCol ¶
SetIndepByCol sets independent variables by column numbers
func (*MulTS) SetIndepByName ¶
SetIndepByName appends independent variables by variable names