Core of "ppm" identification method — profile file creating. Support of this identification method is stopped.
Package Specification
This package is encapsulated in sk.fiit.nazou.nalit.nalit_interface.RunPPM
method and uses this package in following way:
-
CreatePPMmodel
class loads input text file, from which profile will be created. Using CreateHashFromFile
and CreateLowestLevelHashFromFile
classes constructs profile stored as LinkedList of MultiHashtables (class MultiHashtable
). In this MultiHashtables, occurances of Markov chains are stored as integers.
- Then, class
ConvertToFractions
converts all occurance integer values to Fractions (class Fraction
).
- And, finally, class
ConvertToDoubles
converts all Fractions to Doubles and stores profile to file as Object, using sk.fiit.nazou.nalit.convert_encoding.LoadOrSaveObject
class.
Notes for future development:
- Escape sequences are maybe added too soon in profile-creating process
- Class Fraction uses only int for numerator and denominator values — possibility of overflow in large values.
- Speed of profile creating can be "tuned" a bit — by hashtables intial sizes and loadfactor optimalization.