Skip to content

Instantly share code, notes, and snippets.

@engleangs
Created July 20, 2019 09:19
Show Gist options
  • Save engleangs/7b4bf2aac4d1198daab9e8ceb5e2229c to your computer and use it in GitHub Desktop.
Save engleangs/7b4bf2aac4d1198daab9e8ceb5e2229c to your computer and use it in GitHub Desktop.
package com.demo.knn;
/**
* @author
* Data class for storing the number represent bit(0,1) of the handwriting data.
*
* */
public class SampleData {
private final double []data;
private final String identifier;
private final String fileName;
public SampleData(String identifier, double[] data, String fileName) {
this.data = data;
this.identifier = identifier;
this.fileName = fileName;
}
public double[] getData() {
return data;
}
public String getIdentifier() {
return identifier;
}
public String getFileName() {
return fileName;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment