22#ifndef __CTX_OUTPUT_H__
23#define __CTX_OUTPUT_H__
130 gzDynamicArray<gzUInt32> m_outputValueIndex;
222 gzArray<gzUInt32> m_lutIndex;
virtual gzBool isError(ctxContext *context, gzUInt32 page=0)
If complete sample is wrong, defaults to max value of bit is same.
gzBool compile(ctxContext *context)
const gzDynamicArray< gzUInt32 > & getOutputValueIndices() const
gzVoid translateValueIndices(ctxRegisterTranslation &translation)
gzUInt32 getMaxValueIndex(ctxContext *context, gzUInt32 page=0)
gzUInt32 getMaxExpectedIndex(ctxContext *context, gzUInt32 page=0)
virtual gzUInt32 getOutputValueIndex(gzUInt32 index)
gzVoid setOutputValueIndices(const gzDynamicArray< gzUInt32 > &indices)
gzVoid propagate(ctxContext *context, ctxPropagateCommand command)
virtual gzFloat getOutputValue(ctxContext *context, gzUInt32 index, gzUInt32 page=0)
virtual gzUInt32 getResultSize()=0
bit size (number of outputs)
virtual gzFloat getExpectedValue(ctxContext *context, gzUInt32 index, gzUInt32 currentSample)=0
Bit expected value.
virtual gzUInt32 getResults()=0
number of results. Shall match number of samples used
virtual gzFloat getOutputValue(ctxContext *context, gzUInt32 index, gzUInt32 page)=0
Output value for bit index.
ctxCostErrorMethod m_currentErrorMethod
gzBool compile(ctxContext *context)
gzFloat getSoftMaxDenom(ctxContext *context, gzFloat &maxArg, gzUInt32 page=0)
gzVoid removeOutput(ctxOutput *output)
gzFloat getDeltaError(ctxContext *context, gzUInt32 page=0)
gzUInt32 getMaxTotalIndex(ctxContext *context, gzUInt32 page=0)
gzRefList< ctxOutput > & getOutputList()
gzBool evaluate(ctxContext *context, gzUInt32 pages=1)
gzBool checkDataConsistency(ctxContext *context)
gzBool isError(ctxContext *context, gzUInt32 page=0)
gzVoid addOutput(ctxOutput *output)
gzFloat getCostError(ctxContext *context, gzUInt32 page=0)
gzArray< gzFloat > getCostDelta(ctxContext *context, gzUInt32 page=0)
gzRefList< ctxOutput > m_outputList
gzBool isPageError(ctxContext *context, gzUInt32 page=0)
gzVoid propagate(ctxContext *context, ctxPropagateCommand command)
gzVoid updateExpectedValues(ctxContext *context, gzUInt32 sample, gzUInt32 page=0)
virtual ~ctxOutputObjectiveClassWeightInterface()
virtual gzFloat getObjectiveClassWeight(gzUInt32 group, gzUInt32 index) const =0
virtual gzUInt32 getObjectiveGroups() const =0
virtual gzUInt32 getObjectiveGroupSize(gzUInt32 group) const =0
virtual ctxCostErrorMethod getObjectiveGroupMethod(gzUInt32 group) const =0
virtual ~ctxOutputObjectiveInterface()