File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
metafacture-statistics/src/main/java/org/metafacture/statistics Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,23 @@ enum Metric {
98
98
99
99
private final List <Metric > metrics = new ArrayList <Metric >();
100
100
101
+ /**
102
+ * Constructs a CooccurrenceMetricCalculator with given metrics.
103
+ *
104
+ * @param allMetrics the Metrics as a comma separated String
105
+ */
101
106
public CooccurrenceMetricCalculator (final String allMetrics ) {
102
107
setMinCount (MIN_COUNT );
103
108
for (final String metric : allMetrics .split ("\\ s*,\\ s*" )) {
104
109
metrics .add (Metric .valueOf (metric ));
105
110
}
106
111
}
107
112
113
+ /**
114
+ * Constructs a CooccurrenceMetricCalculator with given metrics.
115
+ *
116
+ * @param metrics the Metrics as an array
117
+ */
108
118
public CooccurrenceMetricCalculator (final Metric ... metrics ) {
109
119
setMinCount (MIN_COUNT );
110
120
for (final Metric metric : metrics ) {
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ public final class UniformSampler<T> extends
49
49
50
50
private long count ;
51
51
52
+ /**
53
+ * Constructs a UniformSampler with a given sample size.
54
+ *
55
+ * @param sampleSize the size of the sample
56
+ */
52
57
public UniformSampler (final int sampleSize ) {
53
58
this .sampleSize = sampleSize ;
54
59
sample = new ArrayList <T >(sampleSize );
You can’t perform that action at this time.
0 commit comments