Package net.maswag.falcaun
Class IOContinuousSignal<I>
java.lang.Object
net.maswag.falcaun.AbstractIOSignal<I>
net.maswag.falcaun.IOContinuousSignal<I>
- Type Parameters:
I- the type of the input and output signals
- All Implemented Interfaces:
IOSignal<I>
A signal with continuous output values.
-
Field Summary
FieldsFields inherited from class net.maswag.falcaun.AbstractIOSignal
inputSignal, outputSignal -
Constructor Summary
ConstructorsConstructorDescriptionIOContinuousSignal(net.automatalib.word.Word<I> inputSignal, net.automatalib.word.Word<I> outputSignal, ValueWithTime<I> continuousOutputSignal, double signalStep) Constructor for the continuous signal. -
Method Summary
Modifier and TypeMethodDescriptionprefixes(boolean longestFirst) Returns all the prefix of the signal.stream()Constructs a stream ofExtendedIOSignalPieceinstances that hold an input signal, an output signal, and the continuous output segment from after the previous input up to and including this input.subWord(int fromIndex) Constructs a sub-signal of the signal.subWord(int fromIndex, int toIndex) Constructs a sub-signal of the signal.suffix(int suffixLen) Constructs a suffix of the signal.suffixes(boolean longestFirst) Constructs all suffixes of the signal.Methods inherited from class net.maswag.falcaun.AbstractIOSignal
getOutputSymbol, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.maswag.falcaun.IOSignal
getInputSignal, getOutputSignal, isEmpty, length
-
Field Details
-
continuousOutputSignal
ValueWithTime<I> continuousOutputSignal -
signalStep
Double signalStep
-
-
Constructor Details
-
IOContinuousSignal
public IOContinuousSignal(net.automatalib.word.Word<I> inputSignal, net.automatalib.word.Word<I> outputSignal, ValueWithTime<I> continuousOutputSignal, double signalStep) Constructor for the continuous signal.The input and output signals must have the same length. The continuous output signal values must be left-right inclusive.
- Parameters:
inputSignal- the input signaloutputSignal- the output signalcontinuousOutputSignal- the continuous output signal values with time stampssignalStep- the time between each element of inputSignal and outputSignal
-
-
Method Details
-
stream
Constructs a stream ofExtendedIOSignalPieceinstances that hold an input signal, an output signal, and the continuous output segment from after the previous input up to and including this input.- Returns:
- a stream of
ExtendedIOSignalPiece - Throws:
IllegalArgumentException- if the number of steps incontinuousOutputSignal(determined bysignalStep) is less than the length ofinputSignalRuntimeException- ifcontinuousOutputSignalcontains null
-
prefixes
Description copied from interface:IOSignalReturns all the prefix of the signal.- Parameters:
longestFirst- if true, the longest prefixes are returned first.- Returns:
- the list of prefixes of the signal.
-
suffixes
Description copied from interface:IOSignalConstructs all suffixes of the signal.- Parameters:
longestFirst- if true, the longest suffixes are returned first.- Returns:
- the list of suffixes of the signal.
-
suffix
Description copied from interface:IOSignalConstructs a suffix of the signal.- Parameters:
suffixLen- the length of the suffix- Returns:
- the suffix of the signal with the given length.
-
subWord
Description copied from interface:IOSignalConstructs a sub-signal of the signal.- Parameters:
fromIndex- the start index (inclusive)- Returns:
- the sub-signal of the signal from the given index (inclusive) to the end of the signal.
-
subWord
Constructs a sub-signal of the signal.- Parameters:
fromIndex- the start index (inclusive)toIndex- the end index (exclusive)- Returns:
- the sub-signal of the signal from the given index (inclusive) to the given index (exclusive).
-