Class IntegerFrequencyMap
Object
com.owenfeehan.pathpatternfinder.describer.frequencymap.integer.IntegerFrequencyMap
public class IntegerFrequencyMap extends Object
Specialised frequency-map for integers, similar to
FrequencyMap.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description IntegerFrequencyMap(List<Integer> list)Creates for a list of integers. -
Method Summary
Modifier and Type Method Description booleanareIndicesContiguous()inthighest()The highest-value in the map.intlowest()The lowest-value in the map.intnumberUniqueValues()Number of unique values.
-
Constructor Details
-
IntegerFrequencyMap
Creates for a list of integers.- Parameters:
list- the list
-
-
Method Details
-
lowest
public int lowest()The lowest-value in the map.- Returns:
- the lowest-value.
-
highest
public int highest()The highest-value in the map.- Returns:
- the highest-value.
-
numberUniqueValues
public int numberUniqueValues()Number of unique values.- Returns:
- number of unique values.
-
areIndicesContiguous
public boolean areIndicesContiguous()Does it contain exactly one integer (and only one) for every integer betweenlowest()andhighest()inclusive- Returns:
- true if the map fulfills above condition
-