Class ChooseKAugSpaceSampler

  • All Implemented Interfaces:
    IAugmentedSpaceSampler

    public class ChooseKAugSpaceSampler
    extends AbstractAugmentedSpaceSampler
    Samples interval-valued data from a dataset of precise points by sampling k precise points (with replacement) and generating a point in the interval-valued augmented space by only considering those k points, i.e. choosing respective minima and maxima for each attribute from the chosen precise points.
    • Constructor Detail

      • ChooseKAugSpaceSampler

        public ChooseKAugSpaceSampler​(weka.core.Instances preciseInsts,
                                      java.util.Random rng,
                                      int k)
    • Method Detail

      • augSpaceSample

        public weka.core.Instance augSpaceSample()
        Description copied from interface: IAugmentedSpaceSampler
        Generates a point in the augmented space from the AugmentedSpaceSampler's precise dataset.
        Returns:
        A point in the augmented space consisting of upper and lower bounds for each attribute, including the target.
      • getK

        public int getK()
        Returns:
        the k
      • setK

        public void setK​(int k)
        Parameters:
        k - the k to set