net.sf.javaml.core.DefaultDataset Java Examples

The following examples show how to use net.sf.javaml.core.DefaultDataset. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WordFrequency.java    From apogen with Apache License 2.0 6 votes vote down vote up
public WordFrequency(String dir) {
	directory = dir;
	stopWords = new LinkedList<String>();
	textualContentFromTitle = new LinkedList<String>();
	textualContentFromHeadings = new LinkedList<String>();
	textualContentFromTables = null;
	textualContentFromLists = new LinkedList<String>();
	textualContentFromFont = null;
	textualContentFromBody = new LinkedList<String>();
	textualContentFromAnchors = new LinkedList<String>();
	textualContentFromThal = new LinkedList<String>();
	wordsBodyFrequenciesMap = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	wordsThalFrequenciesMap = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	dataBody = new DefaultDataset();
	dataThal = new DefaultDataset();
}
 
Example #2
Source File: UtilsDataset.java    From apogen with Apache License 2.0 5 votes vote down vote up
public UtilsDataset(String app) {
	outputDirectory = app;
	tagsFrequencyMatrix = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	wordsBodyFrequencyMatrix = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	wordsThalFrequencyMatrix = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	urlsDistancesMatrix = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	domsLevenshteinDistancesMatrix = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	domsRobustTreeEditDistancesMatrix = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	tagsFrequenciesDataset = new DefaultDataset();
	wordsBodyFrequenciesDataset = new DefaultDataset();
	wordsThalFrequenciesDataset = new DefaultDataset();
	urlsDistancesDataset = new DefaultDataset();
	domsLevenshteinDistancesDataset = new DefaultDataset();
	domsRobustTreeEditDistancesDataset = new DefaultDataset();
}
 
Example #3
Source File: DomDistance.java    From apogen with Apache License 2.0 5 votes vote down vote up
public DomDistance(String dir, Distance dist) {
	directory = dir;
	distance = dist;
	tagsMasterVector = new LinkedList<String>();
	domDistancesMap = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	data = new DefaultDataset();
	stringsToRemove = new LinkedList<String>();
}
 
Example #4
Source File: TagFrequency.java    From apogen with Apache License 2.0 5 votes vote down vote up
/**
 * creates an instance of TagFrequency class
 * 
 * @param dir
 */
public TagFrequency(String dir) {
	directory = dir;
	tagsMasterVector = new LinkedList<String>();
	tagsFrequenciesMap = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
	data = new DefaultDataset();
}
 
Example #5
Source File: TrackHolder.java    From HMMRATAC with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Access the data as a Dataset, for kmeans
 * @return a Dataset representing the data for kmeans and javaml applications
 */
public Dataset getDataSet(){
	Dataset data = new DefaultDataset();
	for (int i = 0;i < tracks.size();i++){
		DenseInstance ins = new DenseInstance(tracks.get(i));
		//for (int a = 0;a < tracks.get(i).length;a++){
			//System.out.println(tracks.get(i)[a]);
		//}
		data.add(ins);
	}
	
	return data;
}
 
Example #6
Source File: UrlDistance.java    From apogen with Apache License 2.0 4 votes vote down vote up
public UrlDistance(String dir) {
	directory = dir;
	data = new DefaultDataset();
	urlDistancesMap = new LinkedHashMap<String, LinkedHashMap<String, BigDecimal>>();
}