/** * It constructs a classifier with the condition and the action specified. It's used by the * covering operator. * * <p> * * @param condition is the environtment state * @param action is the action chosen * @param size is the size of the set. * @param tStamp is the time */ public Classifier(double[] condition, int action, int size, int tStamp) { rep = new Representation(condition, action); parameters = new Parameters(tStamp, size, rep.getGenerality()); } // end Classifier
/** * Computes the generality of the classifier. Its result is stored in the generality parameter. */ public void calculateGenerality() { parameters.setGenerality(rep.getGenerality()); } // end calculateGenerality