Package adams.data

Class DoubleAnonymizer

    • Constructor Detail

      • DoubleAnonymizer

        public DoubleAnonymizer()
        Default constructor. Uses a random ID and buffer size 100.
      • DoubleAnonymizer

        public DoubleAnonymizer​(String id,
                                int bufferSize)
        Initializes the anonymizer with a random seed value.
        Parameters:
        id - the ID of the anonymizer
        bufferSize - the size of the buffer for unused IDs
      • DoubleAnonymizer

        public DoubleAnonymizer​(String id,
                                long seed,
                                int bufferSize)
        Initializes the anonymizer.
        Parameters:
        id - the ID of the anonymizer
        seed - the seed value for the random number generator
        bufferSize - the size of the buffer for unused IDs
    • Method Detail

      • toAnonymized

        protected Double toAnonymized​(Integer id)
        Turns the anonymous integer ID into the appropriate data type.
        Specified by:
        toAnonymized in class AbstractAnonymizer<Double>
        Parameters:
        id - the ID to convert
        Returns:
        the final result