Files

12 lines
290 B
Java
Raw Permalink Normal View History

2024-03-26 14:07:09 -06:00
// Object structure for correlation between two words
public class corrolation {
public int correlativeOccurrences = 0;
public word startWord;
public word endWord;
public double getCorrelation() {
return (double)(correlativeOccurrences) / (double)(startWord.count);
}
}