mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
26 lines
857 B
C++
26 lines
857 B
C++
#ifndef REGRESSION_LOGARITHMIC_MODEL_H
|
|
#define REGRESSION_LOGARITHMIC_MODEL_H
|
|
|
|
#include "model.h"
|
|
|
|
namespace Regression {
|
|
|
|
class LogarithmicModel : public Model {
|
|
public:
|
|
using Model::Model;
|
|
Poincare::Layout layout() override;
|
|
I18n::Message formulaMessage() const override { return I18n::Message::LogarithmicRegressionFormula; }
|
|
double evaluate(double * modelCoefficients, double x) const override;
|
|
double levelSet(double * modelCoefficients, double xMin, double step, double xMax, double y, Poincare::Context * context) override;
|
|
double partialDerivate(double * modelCoefficients, int derivateCoefficientIndex, double x) const override;
|
|
int numberOfCoefficients() const override { return 2; }
|
|
int bannerLinesCount() const override { return 2; }
|
|
protected:
|
|
bool dataSuitableForFit(Store * store, int series) const override;
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif
|