public final class ImmutableAnomalyInfo extends AnomalyInfo implements ImmutableOutputInfo<Event>
ImmutableOutputInfo
object for Event
s.
The ids are predefined for Event
in the Event class itself.
anomalyCount, expectedCount, unknownCount
Modifier and Type | Method and Description |
---|---|
ImmutableAnomalyInfo |
copy()
Generates a copy of this OutputInfo, including it's mutability.
|
int |
getID(Event output)
Return the id number associated with this output, or -1 if the output is unknown.
|
Event |
getOutput(int id)
Returns the output associated with this id, or null if the id is unknown.
|
long |
getTotalObservations()
Returns the total number of observed outputs seen by this ImmutableOutputInfo.
|
Iterator<com.oracle.labs.mlrg.olcut.util.Pair<Integer,Event>> |
iterator() |
generateImmutableOutputInfo, generateMutableOutputInfo, getAnomalyCount, getDomain, getEventCount, getExpectedCount, getUnknownCount, outputCountsIterable, size, toReadableString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateImmutableOutputInfo, generateMutableOutputInfo, getDomain, getUnknownCount, outputCountsIterable, size, toReadableString
forEach, spliterator
public int getID(Event output)
ImmutableOutputInfo
getID
in interface ImmutableOutputInfo<Event>
output
- An outputpublic Event getOutput(int id)
ImmutableOutputInfo
getOutput
in interface ImmutableOutputInfo<Event>
id
- A non-negative integer.public long getTotalObservations()
ImmutableOutputInfo
getTotalObservations
in interface ImmutableOutputInfo<Event>
public ImmutableAnomalyInfo copy()
OutputInfo
copy
in interface OutputInfo<Event>
copy
in class AnomalyInfo
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.