Skip to content

Instantly share code, notes, and snippets.

@engleangs
Created July 20, 2019 09:20
Show Gist options
  • Save engleangs/d047584d73ab7d38ddef90e74a0da4ce to your computer and use it in GitHub Desktop.
Save engleangs/d047584d73ab7d38ddef90e74a0da4ce to your computer and use it in GitHub Desktop.
package com.demo.knn;
/**
* @author Engleang
* Data class for storing distance value between test and sample .
* */
public class SampleDistanceValue {
private final String identifier;
private final double value;
public SampleDistanceValue(String identifier, double value) {
this.identifier = identifier;
this.value = value;
}
public String getIdentifier() {
return identifier;
}
public double getValue() {
return value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment