LibCapy - mathfun

Class to manipulate mathematical functions.

Macros:

CapyMathFun object definition macro

Enumerations:

None.

Typedefs:

CapyMathFun object

Predeclaration

Struct CapyHyperplane :

Struct CapyHyperplane's properties:

Inherit CapyMathFun

Hyperplane parameters, the hyperplane is defined as the points X such as H(X)=u.[X|1]=0

Struct CapyHyperplane's methods:

Destructor

Struct CapyLinCombFun :

Struct CapyLinCombFun's properties:

Inherit CapyMathFun

Number of linearly combined functions

Vector of coefficients for the combination

Bias coefficient

Temporary vector for calculation

References to the combined functions

Struct CapyLinCombFun's methods:

Destructor

Calculate the combination coefficients that best fit a dataset

Input argument(s):

dataset: the dataset
iOutput: the index of the output

Output and side effect(s):

Calculate the best fit coefficients using linear regression. The number of input fields in the dataset must match the input dimension of combined functions. Can be used for dimOut=1 only.

Functions:

Create a CapyMathFun

Input argument(s):

dimIn: input dimension
dimOut: output dimension

Output and side effect(s):

Return a CapyMathFun. domains set by default to [0, 1]

Create a CapyHyperplane

Input argument(s):

dimIn: input dimension

Output and side effect(s):

Return a CapyHyperplane.

Allocate memory and create a CapyHyperplane

Input argument(s):

dimIn: input dimension

Output and side effect(s):

Return a CapyHyperplane.

Free the memory used by a CapyHyperplane* and reset '*that' to NULL

Input argument(s):

that: the CapyHyperplane to free

Create a CapyLinCombFun

Input argument(s):

nbComb: number of linearly combined functions
dimIn: input dimension
dimOut: output dimension

Output and side effect(s):

Return a CapyLinCombFun.

Allocate memory and create a CapyLinCombFun

Input argument(s):

nbComb: number of linearly combined functions
dimIn: input dimension
dimOut: output dimension

Output and side effect(s):

Return a CapyLinCombFun.

Free the memory used by a CapyLinCombFun* and reset '*that' to NULL

Input argument(s):

that: the CapyLinCombFun to free

2022-02-15
in LibCapy,
78 views
Copyright 2021-2025 Baillehache Pascal