Package org.tribuo.clustering
Class MutableClusteringInfo
java.lang.Object
org.tribuo.clustering.ClusteringInfo
org.tribuo.clustering.MutableClusteringInfo
- All Implemented Interfaces:
Serializable
,MutableOutputInfo<ClusterID>
,OutputInfo<ClusterID>
A mutable
ClusteringInfo
. Can record new observations of ClusterID
s, incrementing the
appropriate counts.- See Also:
-
Field Summary
Fields inherited from class org.tribuo.clustering.ClusteringInfo
clusterCounts, unknownCount
-
Method Summary
Methods inherited from class org.tribuo.clustering.ClusteringInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tribuo.OutputInfo
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
-
Method Details
-
observe
Description copied from interface:MutableOutputInfo
Records an output value or statistics thereof.- Specified by:
observe
in interfaceMutableOutputInfo<ClusterID>
- Parameters:
output
- The observed output.
-
clear
public void clear()Description copied from interface:MutableOutputInfo
Clears the OutputInfo, removing all things it's observed.- Specified by:
clear
in interfaceMutableOutputInfo<ClusterID>
-
copy
Description copied from interface:OutputInfo
Generates a copy of this OutputInfo, including it's mutability.- Specified by:
copy
in interfaceOutputInfo<ClusterID>
- Specified by:
copy
in classClusteringInfo
- Returns:
- A copy of the OutputInfo.
-