/** * Creates a new {@code DefaultInputOutputPair} with the given input and * output. * * @param input * The input to store. * @param output * The output to store. */ public DefaultInputOutputPair( final InputType input, final OutputType output) { super(); this.setInput(input); this.setOutput(output); }
/** * Creates a new {@code DefaultInputOutputPair} with the given input and * output. * * @param input * The input to store. * @param output * The output to store. */ public DefaultInputOutputPair( final InputType input, final OutputType output) { super(); this.setInput(input); this.setOutput(output); }
/** * Creates a new {@code DefaultInputOutputPair} with the given input and * output. * * @param input * The input to store. * @param output * The output to store. */ public DefaultInputOutputPair( final InputType input, final OutputType output) { super(); this.setInput(input); this.setOutput(output); }
this.result.setOutput(fxhat);
this.result.setOutput(fxhat);
this.result.setOutput(fxhat);
public double differentiate( double input ) { double output; if( this.lastEvaluation == null ) { output = this.evaluate(input); this.lastEvaluation = new DefaultInputOutputPair<Double, Double>(input,output); } else if( this.lastEvaluation.getInput() == input ) { output = this.lastEvaluation.getOutput(); } else { output = this.evaluate(input); this.lastEvaluation.setInput(input); this.lastEvaluation.setOutput(output); } double dx = FORWARD_DIFFERENCE; double dy = this.evaluate( input + dx ) - output; return dy / dx; }
public double differentiate( double input ) { double output; if( this.lastEvaluation == null ) { output = this.evaluate(input); this.lastEvaluation = new DefaultInputOutputPair<Double, Double>(input,output); } else if( this.lastEvaluation.getInput() == input ) { output = this.lastEvaluation.getOutput(); } else { output = this.evaluate(input); this.lastEvaluation.setInput(input); this.lastEvaluation.setOutput(output); } double dx = FORWARD_DIFFERENCE; double dy = this.evaluate( input + dx ) - output; return dy / dx; }
public double differentiate( double input ) { double output; if( this.lastEvaluation == null ) { output = this.evaluate(input); this.lastEvaluation = new DefaultInputOutputPair<Double, Double>(input,output); } else if( this.lastEvaluation.getInput() == input ) { output = this.lastEvaluation.getOutput(); } else { output = this.evaluate(input); this.lastEvaluation.setInput(input); this.lastEvaluation.setOutput(output); } double dx = FORWARD_DIFFERENCE; double dy = this.evaluate( input + dx ) - output; return dy / dx; }
this.computeVector( input ) ); this.lastEvaluation.setInput(input); this.lastEvaluation.setOutput(output);
this.computeVector( input ) ); this.lastEvaluation.setInput(input); this.lastEvaluation.setOutput(output);
this.computeVector( input ) ); this.lastEvaluation.setInput(input); this.lastEvaluation.setOutput(output);
this.simplexInputSum.plusEquals( xnew ); pold.setInput( xnew ); pold.setOutput( ynew );
this.simplexInputSum.plusEquals( xnew ); pold.setInput( xnew ); pold.setOutput( ynew );
this.simplexInputSum.plusEquals( xnew ); pold.setInput( xnew ); pold.setOutput( ynew );