|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.rsl.jpop.AdditiveFunctionAssembler
public class AdditiveFunctionAssembler
Implements an additive FunctionAssembler meaning that it computes the sum element by element of each block result. This FunctionAssembler can be used as an example for alternative FunctionAssembler implementations.
Constructor Summary | |
---|---|
AdditiveFunctionAssembler()
|
Method Summary | |
---|---|
double |
assembleEvaluationBlocks(double[] blockResults)
This method is provided with an array of block results and assembles them into a single function evaluation result. |
double[] |
assembleGradientBlocks(double[][] blockResults)
This method is provided with an array of gradients which were obtained by the different processing blocks. |
double[][] |
assembleHessianBlocks(double[][][] blockResults)
This method is provided with an array of hessians as computed fron the parallel procesing blocks. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdditiveFunctionAssembler()
Method Detail |
---|
public double assembleEvaluationBlocks(double[] blockResults)
FunctionAssembler
assembleEvaluationBlocks
in interface FunctionAssembler
blockResults
- the results of the processing blocks.
public double[] assembleGradientBlocks(double[][] blockResults)
FunctionAssembler
assembleGradientBlocks
in interface FunctionAssembler
blockResults
- the block results
public double[][] assembleHessianBlocks(double[][][] blockResults)
FunctionAssembler
assembleHessianBlocks
in interface FunctionAssembler
blockResults
- the block results.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |