Learn R Programming

QuantTools (version 0.5.7.1)

RollLinReg: C++ Rolling Linear Regression class

Description

C++ class documentation

Arguments

n

indicator period

Usage

RollLinReg( int n )

Public Members and Methods

Name Return Type
Description Add( InputType value ) void
update indicator Reset() void
reset to initial state IsFormed() bool
is indicator value valid? GetAlphaHistory() std::vector< double >
return alpha history GetBetaHistory() std::vector< double >
return beta history GetRHistory() std::vector< double >
return r history GetRSquaredHistory() std::vector< double >
return r squared history GetValue() LinRegCoeffs
has members double alpha, beta, r, rSquared Name

Details

R functions roll_lm.

See Also

Other C++ indicators: BBands, Crossover, Ema, Indicator, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic

Other C++ classes: BBands, Candle, Cost, Crossover, Ema, Indicator, Order, Processor, RollPercentRank, RollRange, RollSd, RollVolumeProfile, Rsi, Sma, Stochastic, Tick