@Override public QuantileResult build() { return new QuantileResult( value, indices, weights); }
/** * Creates an {@code QuantileResult} from the value, the indices and the weights. * <p> * The amounts must be of the correct type, one pay and one receive. * The currencies of the payments must differ. * * @param value the quantile value * @param indices the indices of the samples used in the quantile computation * @param weights the weights of the samples used in the quantile computation * @return the quantile result */ public static QuantileResult of(double value, int[] indices, DoubleArray weights) { return new QuantileResult(value, indices, weights); }