if (mString.length() != 0) { if (mString.equalsIgnoreCase("sparse1")) { setDistribution(new SelectedTag(SPARSE1, TAGS_DSTRS_TYPE)); } else if (mString.equalsIgnoreCase("sparse2")) { setDistribution(new SelectedTag(SPARSE2, TAGS_DSTRS_TYPE)); } else if (mString.equalsIgnoreCase("gaussian")) { setDistribution(new SelectedTag(GAUSSIAN, TAGS_DSTRS_TYPE));
if (mString.length() != 0) { if (mString.equalsIgnoreCase("sparse1")) { setDistribution(new SelectedTag(SPARSE1, TAGS_DSTRS_TYPE)); } else if (mString.equalsIgnoreCase("sparse2")) { setDistribution(new SelectedTag(SPARSE2, TAGS_DSTRS_TYPE)); } else if (mString.equalsIgnoreCase("gaussian")) { setDistribution(new SelectedTag(GAUSSIAN, TAGS_DSTRS_TYPE));
/** * 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); }