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
- タイムタイム
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = linearRegression.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
戻り値: Task
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = linearRegression.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
戻り値: Task
ToString
public override string ToString()
result = linearRegression.ToString()
ライン表現に換算します。
戻り値: 弦のパフォーマンス。