Created
July 20, 2019 09:19
-
-
Save engleangs/7b4bf2aac4d1198daab9e8ceb5e2229c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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