This file will hold the prototypes for procedures which allocate, free, and evaluate various polynomials. Those polynomial structures are also defined here.
Definition in file psPolynomial.h.
#include <stdio.h>
#include <stdbool.h>
#include <float.h>
#include <math.h>
#include "psVector.h"
#include "psScalar.h"
Include dependency graph for psPolynomial.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Enumerations | |
| enum | psPolynomialType { PS_POLYNOMIAL_ORD, PS_POLYNOMIAL_CHEB } |
| Polynomial Type. More... | |
Functions | |
| float | psGaussian (float x, float mean, float sigma, bool normal) |
| Evaluate a non-normalized Gaussian with the given mean and sigma at the given coordianate. | |
| psVector * | p_psGaussianDev (psF32 mean, psF32 sigma, psS32 Npts) |
| Produce a vector of random numbers from a Gaussian distribution with the specified mean and sigma. | |
| psPolynomial1D * | psPolynomial1DAlloc (int n, psPolynomialType type) |
| Allocates a psPolynomial1D structure with n terms. | |
| psPolynomial2D * | psPolynomial2DAlloc (int nX, int nY, psPolynomialType type) |
| Allocates a 2-D polynomial structure. | |
| psPolynomial3D * | psPolynomial3DAlloc (int nX, int nY, int nZ, psPolynomialType type) |
| Allocates a 3-D polynomial structure. | |
| psPolynomial4D * | psPolynomial4DAlloc (int nX, int nY, int nZ, int nT, psPolynomialType type) |
| Allocates a 4-D polynomial structure. | |
| psF64 | psPolynomial1DEval (const psPolynomial1D *poly, psF64 x) |
| Evaluates a 1-D polynomial at specific coordinates. | |
| psF64 | psPolynomial2DEval (const psPolynomial2D *poly, psF64 x, psF64 y) |
| Evaluates a 2-D polynomial at specific coordinates. | |
| psF64 | psPolynomial3DEval (const psPolynomial3D *poly, psF64 x, psF64 y, psF64 z) |
| Evaluates a 3-D polynomial at specific coordinates. | |
| psF64 | psPolynomial4DEval (const psPolynomial4D *poly, psF64 x, psF64 y, psF64 z, psF64 t) |
| Evaluates a 4-D polynomial at specific coordinates. | |
| psVector * | psPolynomial1DEvalVector (const psPolynomial1D *poly, const psVector *x) |
| Evaluates a 1-D polynomial at specific sets of coordinates. | |
| psVector * | psPolynomial2DEvalVector (const psPolynomial2D *poly, const psVector *x, const psVector *y) |
| Evaluates a 2-D polynomial at specific sets of coordinates. | |
| psVector * | psPolynomial3DEvalVector (const psPolynomial3D *poly, const psVector *x, const psVector *y, const psVector *z) |
| Evaluates a 3-D polynomial at specific sets of coordinates. | |
| psVector * | psPolynomial4DEvalVector (const psPolynomial4D *poly, const psVector *x, const psVector *y, const psVector *z, const psVector *t) |
| Evaluates a 4-D polynomial at specific sets of coordinates. | |
| bool | psMemCheckPolynomial1D (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckPolynomial2D (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckPolynomial3D (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckPolynomial4D (psPtr ptr) |
| Checks the type of a particular pointer. | |
1.4.2