Top Description Fields Constructors Methods
org.apache.commons.math3.optimization

public Class Weight

extends Object
implements OptimizationData
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.optimization.OptimizationData
Annotations
@Deprecated
Imports
org.apache.commons.math3.linear.RealMatrix, .DiagonalMatrix, .NonSquareMatrixException

Deprecated

As of 3.1 (to be removed in 4.0).

Weight matrix of the residuals between model and observations.
Immutable class.
Since
3.1

Field Summary

Modifier and TypeField and Description
private final RealMatrix
weightMatrix

Weight matrix.

Constructor Summary

AccessConstructor and Description
public
Weight(double[]
List of the values of the diagonal.
weight
)

Creates a diagonal weight matrix.

public
Weight(RealMatrix
Weight matrix.
weight
)

Method Summary

Modifier and TypeMethod and Description
public RealMatrix

Returns:

the initial guess.
getWeight
()

Gets the initial guess.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

weightMatrixback to summary
private final RealMatrix weightMatrix

Weight matrix.

Constructor Detail

Weightback to summary
public Weight(double[] weight)

Creates a diagonal weight matrix.

Parameters
weight:double[]

List of the values of the diagonal.

Weightback to summary
public Weight(RealMatrix weight)
Parameters
weight:RealMatrix

Weight matrix.

Exceptions
NonSquareMatrixException:
if the argument is not a square matrix.

Method Detail

getWeightback to summary
public RealMatrix getWeight()

Gets the initial guess.

Returns:RealMatrix

the initial guess.