LinearRegression
StockSharp.Algo.Indicators
リニア回帰のフルクラスは、LinearReg、LinearRegSlope、RSquared、StandardErrorを同時に計算します。
継承元: BaseComplexIndicator<ILinearRegressionValue>
コンストラクター
LinearRegression
public LinearRegression()
linearRegression = LinearRegression()
LinearRegression の新規インスタンスを初期化します。
LinearRegression
public LinearRegression(LinearReg linearReg, LinearRegRSquared rSquared, LinearRegSlope regSlope, StandardError standardError)
linearRegression = LinearRegression(linearReg, rSquared, regSlope, standardError)
LinearRegression の新規インスタンスを初期化します。
- linearReg
- 線形回帰。
- rSquared
- 回帰R字。
- regSlope
- 独立した変数、直線の斜面と係数。
- standardError
- 標準エラー。
プロパティ
Length
public int Length { get; set; }
value = linearRegression.Length
linearRegression.Length = value
期間の長さ。
LinearRegSlope
public LinearRegSlope LinearRegSlope { get; }
value = linearRegression.LinearRegSlope
独立した変数、直線の斜面と係数。
StandardError
public StandardError StandardError { get; }
value = linearRegression.StandardError
標準エラー。
メソッド
CreateValue
protected override ILinearRegressionValue CreateValue(DateTime time)
result = linearRegression.CreateValue(time)
作成する
- time
- タイムタイム
Load
public override void Load(SettingsStorage storage)
linearRegression.Load(storage)
設定をロードします。
- storage
- 設定ストレージ。
Save
public override void Save(SettingsStorage storage)
linearRegression.Save(storage)
設定を保存します。
- storage
- 設定ストレージ。
ToString
public override string ToString()
result = linearRegression.ToString()
ライン表現に換算します。
戻り値: 弦のパフォーマンス。