Package org.apache.sysds.runtime.util
Class DMVUtils
- java.lang.Object
-
- org.apache.sysds.runtime.util.DMVUtils
-
public class DMVUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DMVUtils.LEVEL_ENUM
-
Constructor Summary
Constructors Constructor Description DMVUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
acceptNegativeNumbersAsDigits(String pattern)
static Map<String,Double>
calculatePatternsRatio(Map<String,Integer> patterns_hist, int nr_entries)
static String
encodeRawString(String input)
static String
findDominantPattern(Map<String,Double> dominant_patterns, double threshold)
static String
getFrequencyOfEachConsecutiveChar(String s)
static Map<String,Integer>
LevelsExecutor(Map<String,Integer> old_pattern_hist, DMVUtils.LEVEL_ENUM level)
static String
removeInnerCharacterInPattern(String pattern, char outter_char, char inner_char)
static String
removeUpperLowerCase(String pattern)
static FrameBlock
syntacticalPatternDiscovery(FrameBlock frame, double threshold, String disguised_value)
-
-
-
Field Detail
-
DIGIT
public static final char DIGIT
- See Also:
- Constant Field Values
-
LOWER
public static final char LOWER
- See Also:
- Constant Field Values
-
UPPER
public static final char UPPER
- See Also:
- Constant Field Values
-
ALPHA
public static final char ALPHA
- See Also:
- Constant Field Values
-
SPACE
public static final char SPACE
- See Also:
- Constant Field Values
-
DOT
public static final char DOT
- See Also:
- Constant Field Values
-
OTHER
public static final char OTHER
- See Also:
- Constant Field Values
-
ARBITRARY_LEN
public static final char ARBITRARY_LEN
- See Also:
- Constant Field Values
-
MINUS
public static final char MINUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
syntacticalPatternDiscovery
public static FrameBlock syntacticalPatternDiscovery(FrameBlock frame, double threshold, String disguised_value)
-
calculatePatternsRatio
public static Map<String,Double> calculatePatternsRatio(Map<String,Integer> patterns_hist, int nr_entries)
-
findDominantPattern
public static String findDominantPattern(Map<String,Double> dominant_patterns, double threshold)
-
LevelsExecutor
public static Map<String,Integer> LevelsExecutor(Map<String,Integer> old_pattern_hist, DMVUtils.LEVEL_ENUM level)
-
removeInnerCharacterInPattern
public static String removeInnerCharacterInPattern(String pattern, char outter_char, char inner_char)
-
-