Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.math3.optim.nonlinear.vector
Class Weight

    java.lang.Object
      org.apache.commons.math3.optim.nonlinear.vector.Weight

All Implemented Interfaces:
  OptimizationData

    public class Weight

extends Object
implements OptimizationData

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

Since:
  3.1
Version:
  $Id: Weight.java 1416643 2012-12-03 19:37:14Z tn $

Constructor Summary
`Weight(double[] weight)` Creates a diagonal weight matrix.
`Weight(RealMatrix weight)`

Method Summary
`RealMatrix` | `getWeight()` Gets the initial guess.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Weight

    public Weight(double[] weight)

  Creates a diagonal weight matrix.

  Parameters:
    `weight` - List of the values of the diagonal.

### Weight

    public Weight(RealMatrix weight)

Parameters:
  `weight` - Weight matrix.
Throws:
  `NonSquareMatrixException` - if the argument is not a square matrix.

Method Detail

### getWeight

    public RealMatrix getWeight()

  Gets the initial guess.

  Returns:
    the initial guess.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.