PetscRegressorLinearGetIntercept#
Get the intercept from a linear regression model
Synopsis#
#include "petscregressor.h"
PETSC_EXTERN PetscErrorCode PetscRegressorLinearGetIntercept(PetscRegressor regressor, PetscScalar *intercept)
Not Collective
Input Parameter#
regressor - the
PetscRegressorcontext
Output Parameter#
intercept - the intercept
See Also#
PetscRegressor, PetscRegressorLinearSetFitIntercept(), PetscRegressorLinearGetCoefficients(), PETSCREGRESSORLINEAR
Level#
beginner
Location#
Examples#
src/ml/regressor/tests/ex1.c
src/ml/regressor/tests/ex2.c
src/ml/regressor/tests/ex3.c
src/ml/regressor/tests/ex_sharks.c
Implementations#
PetscRegressorLinearGetIntercept_Linear() in src/ml/regressor/impls/linear/linear.c
Index of all PetscRegressor routines
Table of Contents for all manual pages
Index of all manual pages