MixtureOptimizer.weights

  1. const(T)[] weights()
    class MixtureOptimizer(T)
    final @property const
    const(T)[]
    weights
    ()
    if (
    isFloatingPoint!T
    )
  2. void weights(Range _weights)

Return Value

Type: const(T)[]

Const slice of the internal weights representation.

Examples

//save slice
auto weights = optimizer.weights;

//use `.dup` or copy to save current weights

//1: .dup
auto weightsSave1 = weights.dup;

//2: create array
auto weightsSave2 = new double[weights.length];
//2: copy
weightsSave2[] = weights[];

Meta