public class LogMove<M> extends Move<M>
expectedGain, realGain
Constructor and Description |
---|
LogMove(nl.tue.astar.Trace variantId,
int position,
int insertId,
int frequency,
int logSize) |
Modifier and Type | Method and Description |
---|---|
SearchState<M> |
apply(SearchState<M> state,
OptimalMiner<?> miner)
Applies the move to the given search state.
|
protected double |
computeExpectedGain(int... arguments) |
getExpectedGain, getRealGain, setRealGain
public LogMove(nl.tue.astar.Trace variantId, int position, int insertId, int frequency, int logSize)
variantId
- the id of the trace variant to be changedposition
- the position of the event to be inserted or deleted from the loginsertId
- the id of the event to be inserted (-1 if it should be deleted)frequency
- the count of this affected variant in the entire log.logSize
- the size of the entire logprotected double computeExpectedGain(int... arguments)
computeExpectedGain
in class Move<M>
arguments
- as supplied in the constructorpublic SearchState<M> apply(SearchState<M> state, OptimalMiner<?> miner)
Move
apply
in class Move<M>
state
- SearchState
composed of current log and model