/// <summary> /// Расчет одного значения /// </summary> /// <param name="inp">Независимая переменная</param> /// <returns>Прогноз</returns> public double Predict(double inp) { Vector data = ExtensionOfFeatureSpace.Polinomial(inp, X.N - 1); double outp = GeomFunc.ScalarProduct(data, param); return(outp); }
/// <summary> /// Расчет одного значения /// </summary> /// <param name="inp">Независимая переменная</param> /// <returns>Прогноз</returns> public double Predict(double inp) { Vector data = ExtensionOfFeatureSpace.GaussRBF(inp, X, sig); double outp = GeomFunc.ScalarProduct(data, param); return(outp); }
/// <summary> /// Прогноз /// </summary> /// <param name="vect">Вектор входа</param> /// <returns>Выход</returns> public double Predict(Vector vect) { Vector inp = vect.AddOne(); inp -= mean; inp /= std; return(GeomFunc.ScalarProduct(inp, _param)); }
/// <summary> /// Прогноз /// </summary> /// <param name="inp">Значение незав. переменной</param> public double Predict(double inp) { Vector X = ExtensionOfFeatureSpace.GaussRBF(inp, newX, sigma); return(GeomFunc.ScalarProduct(X, param)); }
/// <summary> /// Прогноз /// </summary> /// <param name="inp">Значение незав. переменной</param> public double Predict(double inp) { Vector X = ExtensionOfFeatureSpace.Sinc(inp, newX); return(GeomFunc.ScalarProduct(X, param)); }
/// <summary> /// Прогноз /// </summary> /// <param name="inp">вход</param> /// <returns>выход</returns> public double Predict(double inp) { Vector X = ExtensionOfFeatureSpace.Polinomial(inp, n - 1); return(GeomFunc.ScalarProduct(X, param)); }