private ResultContentEvent newResultContentEvent ( double [ ] prediction , InstanceContentEvent inEvent ) { ResultContentEvent rce = new ResultContentEvent ( inEvent . getInstanceIndex ( ) , inEvent . getInstance ( ) , inEvent . getClassId ( ) , prediction , inEvent . isLastEvent ( ) ) ; rce . setClassifierIndex ( this . processorId ) ; rce . setEvaluationIndex ( inEvent . getEvaluationIndex ( ) ) ; return rce ; }
Helper method to generate new ResultContentEvent based on an instance and its prediction result .