public void testNumberOfAttributes() { m_Filter = getFilter(5); Instances result = useFilter(); checkResult(result); }
/** Creates a default RandomProjection */ public Filter getFilter() { return getFilter(new RandomProjection().getNumberOfAttributes()); }
public void testNumberOfAttributes() { m_Filter = getFilter(5); Instances result = useFilter(); checkResult(result); }
/** Creates a default RandomProjection */ public Filter getFilter() { return getFilter(new RandomProjection().getNumberOfAttributes()); }
/** * tests the given distribution type * * @param type the distribution type to use * @see RandomProjection#TAGS_DSTRS_TYPE */ protected void checkDistributionType(int type) { m_Filter = getFilter(); ((RandomProjection) m_Filter).setDistribution( new SelectedTag(type, RandomProjection.TAGS_DSTRS_TYPE)); Instances result = useFilter(); checkResult(result); }
/** * tests the given distribution type * * @param type the distribution type to use * @see RandomProjection#TAGS_DSTRS_TYPE */ protected void checkDistributionType(int type) { m_Filter = getFilter(); ((RandomProjection) m_Filter).setDistribution( new SelectedTag(type, RandomProjection.TAGS_DSTRS_TYPE)); Instances result = useFilter(); checkResult(result); }