Changeset 42823
- Timestamp:
- May 8, 2025, 4:45:44 PM (12 months ago)
- Location:
- trunk/psLib/src/math
- Files:
-
- 2 edited
-
psSpline.c (modified) (1 diff)
-
psSpline.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psSpline.c
r42336 r42823 194 194 *****************************************************************************/ 195 195 psSpline1D *psSpline1DFitVector( 196 const psVector* x, ///< Ordinates.197 const psVector* y, ///< Coordinates.198 psF32 dyLower, ///< 1st derivative at lower bound199 psF32 dyUpper) ///< 1st derivative at upper bound196 const psVector* x, ///< Ordinates. 197 const psVector* y, ///< Coordinates. 198 psF32 dyLower, ///< if not NAN, lower-bound 1st derivative is defined 199 psF32 dyUpper) ///< if not NAN, lower-bound 1st derivative is defined 200 200 { 201 201 psTrace("psLib.math", 3, "---- %s() begin ----\n", __func__); -
trunk/psLib/src/math/psSpline.h
r42336 r42823 36 36 { 37 37 unsigned int n; ///< The number of knots 38 psF32 *xKnots; ///< x-coordinate of the knots39 psF32 *yKnots; ///< y-coordinate of the knots40 psF32 *d2yKnots; ///< 2nd derivative of y at the knots41 bool equalSpacing; // if knots are equally spaced, the seqment choice can be optimized42 psF32 xMin; //for equally-spaced knots, the value at the lower bound (xKnots[0])43 psF32 xMax; //for equally-spaced knots, the value at the upper bound (xKnots[n])44 psF32 xDel; //for equally-spaced knots, the spacing (xKnots[n] - xKnots[0])/n38 psF32 *xKnots; ///< x-coordinate of the knots 39 psF32 *yKnots; ///< y-coordinate of the knots 40 psF32 *d2yKnots; ///< 2nd derivative of y at the knots 41 bool equalSpacing; ///< if knots are equally spaced, the seqment choice can be optimized 42 psF32 xMin; ///< for equally-spaced knots, the value at the lower bound (xKnots[0]) 43 psF32 xMax; ///< for equally-spaced knots, the value at the upper bound (xKnots[n]) 44 psF32 xDel; ///< for equally-spaced knots, the spacing (xKnots[n] - xKnots[0])/n 45 45 } 46 46 psSpline1D;
Note:
See TracChangeset
for help on using the changeset viewer.
