I - the input typeO - the output typeMI - the model input typeMO - the model output typeA - the analytic model typepublic abstract class MappedAnalytic<I,O,MI,MO,A extends MappedAnalytic<I,O,MI,MO,A>> extends java.lang.Object implements Analytic<I,O>
Analytic that supports the mapping of input and output
to and from internal representations by applying the given InputMapper
and OutputMapper respectively.| Constructor and Description |
|---|
MappedAnalytic(InputMapper<I,A,MI> inputMapper,
OutputMapper<I,O,A,MO> outputMapper)
Creates a new
MappedAnalytic. |
public MappedAnalytic(InputMapper<I,A,MI> inputMapper, OutputMapper<I,O,A,MO> outputMapper)
MappedAnalytic.inputMapper - must not be null.outputMapper - must not be null.public O evaluate(I input)
Analytic against the given input. The inputMapper is used to map
the given input to an appropriate input for the internal evaluation of the Analytic. The
resulting output of internal evaluation is mapped via the outputMapper to an appropriate result.