Package | Description |
---|---|
org.apache.commons.math3.analysis.integration.gauss |
Gauss family of quadrature schemes.
|
org.apache.commons.math3.distribution |
Implementations of common discrete and continuous distributions.
|
org.apache.commons.math3.fitting.leastsquares |
This package provides algorithms that minimize the residuals
between observations and model values.
|
org.apache.commons.math3.ml.neuralnet |
Neural networks.
|
org.apache.commons.math3.optim |
Generally, optimizers are algorithms that will either
minimize or
maximize
a scalar function, called the
objective
function . |
org.apache.commons.math3.optimization |
All classes and sub-packages of this package are deprecated.
|
org.apache.commons.math3.util |
Convenience routines and common data structures used throughout the commons-math library.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Integer,Pair<T[],T[]>> |
BaseRuleFactory.pointsAndWeights
List of points and weights, indexed by the order of the rule.
|
private java.util.Map<java.lang.Integer,Pair<double[],double[]>> |
BaseRuleFactory.pointsAndWeightsDouble
Cache for double-precision rules.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Pair<T[],T[]> |
BaseRuleFactory.computeRule(int numberOfPoints)
Computes the rule for the given order.
|
protected Pair<java.lang.Double[],java.lang.Double[]> |
HermiteRuleFactory.computeRule(int numberOfPoints)
Computes the rule for the given order.
|
protected Pair<java.lang.Double[],java.lang.Double[]> |
LegendreRuleFactory.computeRule(int numberOfPoints)
Computes the rule for the given order.
|
protected Pair<java.math.BigDecimal[],java.math.BigDecimal[]> |
LegendreHighPrecisionRuleFactory.computeRule(int numberOfPoints)
Computes the rule for the given order.
|
private static <T extends java.lang.Number> |
BaseRuleFactory.convertToDouble(Pair<T[],T[]> rule)
Converts the from the actual
Number type to double |
private static Pair<double[],double[]> |
GaussIntegratorFactory.getRule(BaseRuleFactory<? extends java.lang.Number> factory,
int numberOfPoints) |
Pair<double[],double[]> |
BaseRuleFactory.getRule(int numberOfPoints)
Gets a copy of the quadrature rule with the given number of integration
points.
|
protected Pair<T[],T[]> |
BaseRuleFactory.getRuleInternal(int numberOfPoints)
Gets a rule.
|
private static Pair<double[],double[]> |
GaussIntegratorFactory.transform(Pair<double[],double[]> rule,
double a,
double b)
Performs a change of variable so that the integration can be performed
on an arbitrary interval
[a, b] . |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseRuleFactory.addRule(Pair<T[],T[]> rule)
Stores a rule.
|
private static <T extends java.lang.Number> |
BaseRuleFactory.convertToDouble(Pair<T[],T[]> rule)
Converts the from the actual
Number type to double |
private static Pair<double[],double[]> |
GaussIntegratorFactory.transform(Pair<double[],double[]> rule,
double a,
double b)
Performs a change of variable so that the integration can be performed
on an arbitrary interval
[a, b] . |
Constructor and Description |
---|
GaussIntegrator(Pair<double[],double[]> pointsAndWeights)
Creates an integrator from the given pair of points (first element of
the pair) and weights (second element of the pair.
|
SymmetricGaussIntegrator(Pair<double[],double[]> pointsAndWeights)
Creates an integrator from the given pair of points (first element of
the pair) and weights (second element of the pair.
|
Modifier and Type | Method and Description |
---|---|
private static java.util.List<Pair<java.lang.Double,MultivariateNormalDistribution>> |
MixtureMultivariateNormalDistribution.createComponents(double[] weights,
double[][] means,
double[][][] covariances) |
java.util.List<Pair<java.lang.Double,T>> |
MixtureMultivariateRealDistribution.getComponents()
Gets the distributions that make up the mixture model.
|
java.util.List<Pair<T,java.lang.Double>> |
EnumeratedDistribution.getPmf()
Return the probability mass function as a list of
|
Constructor and Description |
---|
EnumeratedDistribution(java.util.List<Pair<T,java.lang.Double>> pmf)
Create an enumerated distribution using the given probability mass function
enumeration.
|
EnumeratedDistribution(RandomGenerator rng,
java.util.List<Pair<T,java.lang.Double>> pmf)
Create an enumerated distribution using the given random number generator
and probability mass function enumeration.
|
MixtureMultivariateNormalDistribution(java.util.List<Pair<java.lang.Double,MultivariateNormalDistribution>> components)
Creates a mixture model from a list of distributions and their
associated weights.
|
MixtureMultivariateNormalDistribution(RandomGenerator rng,
java.util.List<Pair<java.lang.Double,MultivariateNormalDistribution>> components)
Creates a mixture model from a list of distributions and their
associated weights.
|
MixtureMultivariateRealDistribution(java.util.List<Pair<java.lang.Double,T>> components)
Creates a mixture model from a list of distributions and their
associated weights.
|
MixtureMultivariateRealDistribution(RandomGenerator rng,
java.util.List<Pair<java.lang.Double,T>> components)
Creates a mixture model from a list of distributions and their
associated weights.
|
Modifier and Type | Method and Description |
---|---|
private static Pair<RealMatrix,RealVector> |
GaussNewtonOptimizer.computeNormalMatrix(RealMatrix jacobian,
RealVector residuals)
Compute the normal matrix, JTJ.
|
Pair<RealVector,RealMatrix> |
MultivariateJacobianFunction.value(RealVector point)
Compute the function value and its Jacobian.
|
Pair<RealVector,RealMatrix> |
LeastSquaresFactory.LocalValueAndJacobianFunction.value(RealVector point)
Compute the function value and its Jacobian.
|
Modifier and Type | Method and Description |
---|---|
static Pair<Neuron,Neuron> |
MapUtils.findBestAndSecondBest(double[] features,
java.lang.Iterable<Neuron> neurons,
DistanceMeasure distance)
Finds the two neurons that best match the given features.
|
Modifier and Type | Class and Description |
---|---|
class |
SimplePointChecker<PAIR extends Pair<double[],? extends java.lang.Object>>
Simple implementation of the
ConvergenceChecker interface using
only point coordinates. |
Modifier and Type | Class and Description |
---|---|
class |
SimplePointChecker<PAIR extends Pair<double[],? extends java.lang.Object>>
Deprecated.
As of 3.1 (to be removed in 4.0).
|
Modifier and Type | Class and Description |
---|---|
class |
PointValuePair
Deprecated.
As of 3.1 (to be removed in 4.0).
|
class |
PointVectorValuePair
Deprecated.
As of 3.1 (to be removed in 4.0).
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Pair<K,V> |
Pair.create(K k,
V v)
Convenience factory method that calls the
constructor . |
Constructor and Description |
---|
Pair(Pair<? extends K,? extends V> entry)
Create an entry representing the same mapping as the specified entry.
|