mirror of
https://github.com/Astatin3/Code.org-Final-Projects.git
synced 2026-06-09 00:18:02 -06:00
Add code
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user