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

Продолжительность периода.

LinearReg
public LinearReg LinearReg { get; }
value = linearRegression.LinearReg

Линейная регрессия.

LinearRegSlope
public LinearRegSlope LinearRegSlope { get; }
value = linearRegression.LinearRegSlope

Коэффициент с независимой переменной, наклон прямой.

RSquared
public LinearRegRSquared RSquared { get; }
value = linearRegression.RSquared

Регрессия R-квадрат.

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()

Преобразовать к строковому представлению.

Возвращает: Строковое представление.