mirror of
https://github.com/Astatin3/Code.org-Final-Projects.git
synced 2026-06-08 16:08:02 -06:00
12 lines
290 B
Java
12 lines
290 B
Java
|
|
// 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);
|
||
|
|
}
|
||
|
|
}
|