Class SmoothStepFactory
- java.lang.Object
-
- org.hipparchus.analysis.polynomials.SmoothStepFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SmoothStepFactory.FieldSmoothStepFunction<T extends CalculusFieldElement<T>>
Smoothstep function as defined here.static class
SmoothStepFactory.QuadraticSmoothStepFunction
Specific smoothstep function that cannot be built using thegetGeneralOrder(int)
.static class
SmoothStepFactory.SmoothStepFunction
Smoothstep function as defined here.
-
Method Summary
-
-
-
Method Detail
-
getClamp
public static SmoothStepFactory.SmoothStepFunction getClamp()
Get theclamping smoothstep function
.- Returns:
- clamping smoothstep function
-
getQuadratic
public static SmoothStepFactory.SmoothStepFunction getQuadratic()
Get thequadratic smoothstep function
.- Returns:
- clamping smoothstep function
-
getCubic
public static SmoothStepFactory.SmoothStepFunction getCubic()
Get thecubic smoothstep function
.- Returns:
- cubic smoothstep function
-
getQuintic
public static SmoothStepFactory.SmoothStepFunction getQuintic()
Get thequintic smoothstep function
.- Returns:
- quintic smoothstep function
-
getClamp
public static <T extends CalculusFieldElement<T>> SmoothStepFactory.FieldSmoothStepFunction<T> getClamp(Field<T> field)
Get theclamping smoothstep function
.- Type Parameters:
T
- type of the field element- Parameters:
field
- field of the element- Returns:
- clamping smoothstep function
-
getQuadratic
public static <T extends CalculusFieldElement<T>> SmoothStepFactory.FieldSmoothStepFunction<T> getQuadratic(Field<T> field)
Get thequadratic smoothstep function
.- Type Parameters:
T
- type of the field element- Parameters:
field
- field of the element- Returns:
- clamping smoothstep function
-
getCubic
public static <T extends CalculusFieldElement<T>> SmoothStepFactory.FieldSmoothStepFunction<T> getCubic(Field<T> field)
Get thecubic smoothstep function
.- Type Parameters:
T
- type of the field element- Parameters:
field
- field of the element- Returns:
- cubic smoothstep function
-
getQuintic
public static <T extends CalculusFieldElement<T>> SmoothStepFactory.FieldSmoothStepFunction<T> getQuintic(Field<T> field)
Get thequintic smoothstep function
.- Type Parameters:
T
- type of the field element- Parameters:
field
- field of the element- Returns:
- quintic smoothstep function
-
getGeneralOrder
public static SmoothStepFactory.SmoothStepFunction getGeneralOrder(int N)
Create asmoothstep function
of order 2N + 1.It uses the general smoothstep equation presented here : $S_{N}(x) = \sum_{n=0}^{N} \begin{pmatrix} -N-1 \\ n \end{pmatrix} \begin{pmatrix} 2N+1 \\ N-n \end{pmatrix} x^{N+n+1}$
- Parameters:
N
- determines the order of the output smoothstep function (=2N + 1)- Returns:
- smoothstep function of order 2N + 1
-
getFieldGeneralOrder
public static <T extends CalculusFieldElement<T>> SmoothStepFactory.FieldSmoothStepFunction<T> getFieldGeneralOrder(Field<T> field, int N)
Create asmoothstep function
of order 2N + 1.It uses the general smoothstep equation presented here : $S_{N}(x) = \sum_{n=0}^{N} \begin{pmatrix} -N-1 \\ n \end{pmatrix} \begin{pmatrix} 2N+1 \\ N-n \end{pmatrix} x^{N+n+1}$
- Type Parameters:
T
- type of the field element- Parameters:
field
- field of the elementN
- determines the order of the output smoothstep function (=2N + 1)- Returns:
- smoothstep function of order 2N + 1
-
checkBetweenZeroAndOneIncluded
public static void checkBetweenZeroAndOneIncluded(double input) throws MathIllegalArgumentException
Check that input is between [0:1].- Parameters:
input
- input to be checked- Throws:
MathIllegalArgumentException
- if input is not between [0:1]
-
-