Package org.hipparchus.special
Class BesselJ.BesselJResult
- java.lang.Object
-
- org.hipparchus.special.BesselJ.BesselJResult
-
- Enclosing class:
- BesselJ
public static class BesselJ.BesselJResult extends Object
Encapsulates the results returned byBesselJ.rjBesl(double, double, int)
.getVals()
returns the computed function values.getnVals()
is the number of values among those returned bygetnVals()
that can be considered accurate.- nVals < 0: An argument is out of range. For example, nb <= 0, alpha < 0 or > 1, or x is too large. In this case, b(0) is set to zero, the remainder of the b-vector is not calculated, and nVals is set to MIN(nb,0) - 1 so that nVals != nb.
- nb > nVals > 0: Not all requested function values could be calculated accurately. This usually occurs because nb is much larger than abs(x). In this case, b(n) is calculated to the desired accuracy for n < nVals, but precision is lost for nVals < n <= nb. If b(n) does not vanish for n > nVals (because it is too small to be represented), and b(n)/b(nVals) = \(10^{-k}\), then only the first NSIG-k significant figures of b(n) can be trusted.
-
-
Constructor Summary
Constructors Constructor Description BesselJResult(double[] b, int n)
Create a new BesselJResult with the given values and valid value count.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getnVals()
Get number of valid function values.double[]
getVals()
Get computed function values.
-
-
-
Method Detail
-
getVals
public double[] getVals()
Get computed function values.- Returns:
- the computed function values
-
getnVals
public int getnVals()
Get number of valid function values.- Returns:
- the number of valid function values (normally the same as the
length of the array returned by
getnVals()
)
-
-