Class ImmutableAnomalyInfo
java.lang.Object
org.tribuo.anomaly.AnomalyInfo
org.tribuo.anomaly.ImmutableAnomalyInfo
- All Implemented Interfaces:
- Serializable,- Iterable<com.oracle.labs.mlrg.olcut.util.Pair<Integer,,- Event>> - ImmutableOutputInfo<Event>,- OutputInfo<Event>
An 
ImmutableOutputInfo object for Events.
 
 The ids are predefined for Event in the Event class itself.
- See Also:
- 
Field SummaryFields inherited from class org.tribuo.anomaly.AnomalyInfoanomalyCount, expectedCount, unknownCount
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Generates a copy of this OutputInfo, including it's mutability.intReturn the id number associated with this output, or -1 if the output is unknown.getOutput(int id) Returns the output associated with this id, or null if the id is unknown.longReturns the total number of observed outputs seen by this ImmutableOutputInfo.iterator()Methods inherited from class org.tribuo.anomaly.AnomalyInfogenerateImmutableOutputInfo, generateMutableOutputInfo, getAnomalyCount, getDomain, getEventCount, getExpectedCount, getUnknownCount, outputCountsIterable, size, toReadableStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.tribuo.OutputInfogenerateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
- 
Method Details- 
getIDDescription copied from interface:ImmutableOutputInfoReturn the id number associated with this output, or -1 if the output is unknown.- Specified by:
- getIDin interface- ImmutableOutputInfo<Event>
- Parameters:
- output- An output
- Returns:
- A non-negative integer if the output is known, or -1 if the output is unknown.
 
- 
getOutputDescription copied from interface:ImmutableOutputInfoReturns the output associated with this id, or null if the id is unknown.- Specified by:
- getOutputin interface- ImmutableOutputInfo<Event>
- Parameters:
- id- A non-negative integer.
- Returns:
- An output object or null if it's unknown.
 
- 
getTotalObservationsDescription copied from interface:ImmutableOutputInfoReturns the total number of observed outputs seen by this ImmutableOutputInfo.- Specified by:
- getTotalObservationsin interface- ImmutableOutputInfo<Event>
- Returns:
- The number of observed outputs.
 
- 
copyDescription copied from interface:OutputInfoGenerates a copy of this OutputInfo, including it's mutability.- Specified by:
- copyin interface- OutputInfo<Event>
- Specified by:
- copyin class- AnomalyInfo
- Returns:
- A copy of the OutputInfo.
 
- 
iterator
 
-