@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; return result; }
@Override public Double getDiscriminant() { return this.getWeight(); }
/** * Creates a new {@code WeightedTargetEstimatePair} as a shallow copy of * the given other object. * * @param other * The other object to get the target, estimate, and weight from. */ public DefaultWeightedTargetEstimatePair( final DefaultWeightedTargetEstimatePair<? extends TargetType, ? extends EstimateType> other) { this(other.getTarget(), other.getEstimate(), other.getWeight()); }
/** * Creates a new {@code DefaultWeightedInputOutputPair} that is a shallow * copy of the given {@code WeightedInputOuptutPair}. * * @param other * The other weighted input-output pair to copy the values of. */ public DefaultWeightedInputOutputPair( final WeightedInputOutputPair<? extends InputType, ? extends OutputType> other) { this(other.getInput(), other.getOutput(), other.getWeight()); }
@Override public ValueType getFirst() { return this.getValue(); }
/** * Gets the output, which is the second element in the pair. * * @return * The output. */ public OutputType getSecond() { return this.getOutput(); }
/** * Gets the target, which is the first element in the pair. * * @return * The target. */ @Override public TargetType getFirst() { return this.getTarget(); }
/** * Gets the input, which is the first element in the pair. * * @return * The input. */ public InputType getFirst() { return this.getInput(); }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; return result; }
/** * Creates a new {@code DefaultWeightedInputOutputPair} that is a shallow * copy of the given {@code WeightedInputOuptutPair}. * * @param other * The other weighted input-output pair to copy the values of. */ public DefaultWeightedInputOutputPair( final WeightedInputOutputPair<? extends InputType, ? extends OutputType> other) { this(other.getInput(), other.getOutput(), other.getWeight()); }
/** * Creates a new {@code WeightedTargetEstimatePair} as a shallow copy of * the given other object. * * @param other * The other object to get the target, estimate, and weight from. */ public DefaultWeightedTargetEstimatePair( final DefaultWeightedTargetEstimatePair<? extends TargetType, ? extends EstimateType> other) { this(other.getTarget(), other.getEstimate(), other.getWeight()); }
@Override public Double getSecond() { return this.getWeight(); }
@Override public InputOutputPair<InputType, OutputType> createPair( InputType first, OutputType second ) { return new DefaultInputOutputPair<InputType, OutputType>( first, second ); }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; return result; }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; return result; }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; return result; }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; AtransB = null; return result; }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; AtransB = null; return result; }
@Override final protected InputOutputPair<Vector, Vector> completeSolver() { InputOutputPair<Vector, Vector> result = new DefaultInputOutputPair<Vector, Vector>(x0, x); A = null; residual = null; x = null; delta = 0; return result; }