public void initializeRuleStatistics ( RuleClassification rl , Predicates pred , Instance inst ) { rl . predicateSet . add ( pred ) ; rl . obserClassDistrib = new DoubleVector ( ) ; rl . observers = new AutoExpandVector < AttributeClassObserver > ( ) ; rl . observersGauss = new AutoExpandVector < AttributeClassObserver > ( ) ; rl . instancesSeen = 0 ; rl . attributeStatistics = new DoubleVector ( ) ; rl . squaredAttributeStatistics = new DoubleVector ( ) ; rl . attributeStatisticsSupervised = new ArrayList < ArrayList < Double > > ( ) ; rl . squaredAttributeStatisticsSupervised = new ArrayList < ArrayList < Double > > ( ) ; rl . attributeMissingValues = new DoubleVector ( ) ; }
This function initializes the statistics of a rule