![JAR search and dependency download from the Maven repository](/logo.png)
org.ggp.base.apps.research.FrequencyTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alloy-ggp-base Show documentation
Show all versions of alloy-ggp-base Show documentation
A modified version of the GGP-Base library for Alloy.
The newest version!
package org.ggp.base.apps.research;
/**
* FrequencyTable is an aggregation that maps keys to weighted averages.
*
* @author Sam Schreiber
*/
public final class FrequencyTable extends Aggregation
{
public void add(String key, double value) {
if (!containsEntry(key)) {
createEntry(key, new WeightedAverage());
}
getEntryData(key).addValue(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy