ca.pfv.spmf.tools.dataset_generator
Class AddTimeStampsToSequenceDatabase
- java.lang.Object
-
- ca.pfv.spmf.tools.dataset_generator.AddTimeStampsToSequenceDatabase
-
public class AddTimeStampsToSequenceDatabase extends java.lang.ObjectThis class is to read a sequence database in SPMF format, add consecutive timestamps to itemsets in each sequence, and then write the sequence database to a file.
-
-
Constructor Summary
Constructors Constructor and Description AddTimeStampsToSequenceDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidconvert(java.lang.String inputFile, java.lang.String outputFile)Read a sequence database in SPMF format, add timestamps and then write the sequence database to a file.
-
-
-
Method Detail
-
convert
public void convert(java.lang.String inputFile, java.lang.String outputFile) throws java.io.IOExceptionRead a sequence database in SPMF format, add timestamps and then write the sequence database to a file. Note that this code could be further optimized if performance is an issue (instead of loading the file into memory, it could be loaded line by line).- Parameters:
inputFile- the path of a sequence database in SPMF formatoutputFile- the output path for writing the database with timestamps- Throws:
java.io.IOException- if error while reading/writing file
-
-
DMelt 3.0 © DataMelt by jWork.ORG