Signal<N extends num, E, T extends Signal<N, E, T>> class
abstract
- Inheritance
-
- Implementers
- Available Extensions
Methods
-
add(N element)
→ void
-
Adds
value
to the end of this list,
extending the length by one.
override
-
addAll(Iterable<N> iterable)
→ void
-
Appends all objects of
iterable
to the end of this list.
inherited
-
addToEntry(int index, E entry)
→ void
-
Adds
entry
to entry at index
.
-
addToValue(int valueIndex, N value)
→ void
-
Adds
value
at valueIndex
.
-
addValueFromEntry(E entry, int offset, N value)
→ E
-
-
any(bool test(N element))
→ bool
-
Checks whether any element of this iterable satisfies
test
.
inherited
-
asMap()
→ Map<int, N>
-
An unmodifiable Map view of this list.
inherited
-
calcEntriesCapacityForSize(int size)
→ int
-
-
cast<R>()
→ List<R>
-
Returns a view of this list as a list of
R
instances.
inherited
-
clear()
→ void
-
Removes all objects from this list; the length of the list becomes zero.
inherited
-
computeSumSquares()
→ N
-
Computes the sum of sqaues of values.
-
computeSumSquaresMean()
→ double
-
Computes the sum of squares mean of values.
-
contains(Object? element)
→ bool
-
Whether the collection contains an element equal to
element
.
inherited
-
copy()
→ T
-
Copy instance.
-
createEntry(List<N> values)
→ E
-
Creates an entry with
values
.
-
createEntry1(N v0)
→ E
-
-
createEntry2(N v0, N v1)
→ E
-
-
createEntry3(N v0, N v1, N v2)
→ E
-
-
createEntry4(N v0, N v1, N v2, N v3)
→ E
-
-
createEntryFrom(E other, [N? v0, N? v1, N? v2, N? v3])
→ E
-
-
createEntryFullOf(N v)
→ E
-
Creates an entry full of value
v
.
-
createInstance(int size)
→ T
-
Creates a instance with
size
.
-
createInstanceFullOfValue(int size, N value)
→ T
-
Creates a Signal instance full of
value
.
-
createInstanceOfSameLength()
→ T
-
Creates an isntance of same length of this.
-
createInstanceOfSameLengthFullOfValue(N value)
→ T
-
-
createInstanceWithEntries(int size, List<E> entries)
→ T
-
-
createInstanceWithValues(List<N> values)
→ T
-
Creates a Signal instance full with
values
.
-
createRandomEntries(int size, N randomScale, [Random? rand])
→ List<E>
-
Creates a list of random entries.
-
createRandomEntry(N scale, [Random? rand])
→ E
-
Creates a random entry.
-
createRandomInstance(int size, N randomScale, [Random? rand])
→ T
-
Creates a random instances.
-
createRandomValue(N scale, [Random? rand])
→ N
-
Creates a random value.
-
diff(List<N> otherValues)
→ List<N>
-
Returns the differences of this instances values to
otherValues
.
-
diffAbs(List<N> values)
→ List<N>
-
Returns the absolute differences of this instances
values
to otherValues
.
-
elementAt(int index)
→ N
-
Returns the
index
th element.
inherited
-
ensureEntriesLengthMod(List<E> entries)
→ void
-
-
entryOperationDivide(E entry1, E entry2)
→ E
-
Divide operation (SIMD).
-
entryOperationMultiply(E entry1, E entry2)
→ E
-
Multiply operation (SIMD).
-
entryOperationSubtract(E entry1, E entry2)
→ E
-
Subtract operation (SIMD).
-
entryOperationSum(E entry1, E entry2)
→ E
-
Sum operation (SIMD).
-
entryOperationSumLane(E entry)
→ N
-
Sum lane operation (SIMD).
-
entryOperationSumLanePartial(E entry, int size)
→ N
-
Sum lane partially (until
size
) operation (SIMD).
-
entryOperationSumSquaresLane(E entry)
→ N
-
Sum squares of lane operation (SIMD).
-
entryOperationSumSquaresLanePartial(E entry, int size)
→ N
-
Sum squares of lane partially (until
size
) operation (SIMD).
-
errorGlobalMean(List<N> output)
→ double
-
Returns the mean of errors.
-
errorGlobalSquareMean(List<N> output)
→ double
-
Returns the square mean of errors.
-
errorGlobalSquareMeanRoot(List<N> output)
→ double
-
Returns the square mean root of errors.
-
errors(List<N> output)
→ List<N>
-
Same as diff.
-
errorsAbs(List<N> output)
→ List<N>
-
Same as diffAbs.
-
every(bool test(N element))
→ bool
-
Checks whether every element of this iterable satisfies
test
.
inherited
-
expand<T>(Iterable<T> f(N element))
→ Iterable<T>
-
Expands each element of this Iterable into zero or more elements.
inherited
-
fillRange(int start, int end, [N? fill])
→ void
-
Overwrites a range of elements with
fillValue
.
inherited
-
firstWhere(bool test(N element), {N orElse()?})
→ N
-
The first element that satisfies the given predicate
test
.
inherited
-
fold<T>(T initialValue, T combine(T previousValue, N element))
→ T
-
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(Iterable<N> other)
→ Iterable<N>
-
Creates the lazy concatenation of this iterable and
other
.
inherited
-
forEach(void action(N element))
→ void
-
Invokes
action
on each element of this iterable in iteration order.
inherited
-
getEntries([int? length])
→ List<E>
-
-
getEntry(int index)
→ E
-
Returns entry at
index
.
-
getEntryFiltered(int index, N filter(N n))
→ E
-
Returns entry at
index
with values filtered by filter
.
-
getEntryFilteredX4(int index, E filter(E entry))
→ E
-
-
getRange(int start, int end)
→ Iterable<N>
-
Creates an Iterable that iterates over a range of elements.
inherited
-
getValue(int valueIndex)
→ N
-
Returns a value at
valueIndex
.
-
getValueEntryIndex(int valueIndex)
→ int
-
-
getValueFromEntry(E entry, int offset)
→ N
-
-
getValues([int? length])
→ List<N>
-
Get values with
length
.
-
indexOf(Object? element, [int start = 0])
→ int
-
The first index of
element
in this list.
inherited
-
indexWhere(bool test(N element), [int start = 0])
→ int
-
The first index in the list that satisfies the provided
test
.
inherited
-
insert(int index, N element)
→ void
-
Inserts
element
at position index
in this list.
inherited
-
insertAll(int index, Iterable<N> iterable)
→ void
-
Inserts all objects of
iterable
at position index
in this list.
inherited
-
join([String separator = ""])
→ String
-
Converts each element to a String and concatenates the strings.
inherited
-
lastIndexOf(Object? element, [int? start])
→ int
-
The last index of
element
in this list.
inherited
-
lastIndexWhere(bool test(N element), [int? start])
→ int
-
The last index in the list that satisfies the provided
test
.
inherited
-
lastWhere(bool test(N element), {N orElse()?})
→ N
-
The last element that satisfies the given predicate
test
.
inherited
-
map<T>(T f(N element))
→ Iterable<T>
-
The current elements of this iterable modified by
toElement
.
inherited
-
multiply(T other)
→ T
-
Multiply all entries with
other
entries.
-
multiplyAllEntriesAddingTo(E entry, T destiny)
→ void
-
Multiply all entries with
entry
and add to destiny
.
-
multiplyAllEntriesTo(E entry, T destiny)
→ void
-
Multiply all entries with
entry
and save to destiny
.
-
multiplyAllValuesAddingTo(N value, T destiny)
→ void
-
Multiply all values with
value
and add to destiny
.
-
multiplyEntries(E entry)
→ T
-
-
multiplyTo(T other, T destiny)
→ void
-
Multiply all entries with
other
entries and save to destiny
.
-
multiplyValueTo(N value, T destiny)
→ void
-
-
normalize(Scale<N> scale)
→ T
-
Creates a Signal instance normalized with
scale
.
-
normalizeEntry(E entry, Scale<N> scale)
→ E
-
Normalizes an entry
E
with scale
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
nToString(N n)
→ String
-
Converts
n
to String.
-
reduce(N combine(N previousValue, N element))
→ N
-
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
remove(Object? element)
→ bool
-
Removes the first occurrence of
value
from this list.
inherited
-
removeAt(int index)
→ N
-
Removes the object at position
index
from this list.
inherited
-
removeLast()
→ N
-
Removes and returns the last object in this list.
inherited
-
removeRange(int start, int end)
→ void
-
Removes a range of elements from the list.
inherited
-
removeWhere(bool test(N element))
→ void
-
Removes all objects from this list that satisfy
test
.
inherited
-
replaceRange(int start, int end, Iterable<N> newContents)
→ void
-
Replaces a range of elements with the elements of
replacements
.
inherited
-
retainWhere(bool test(N element))
→ void
-
Removes all objects from this list that fail to satisfy
test
.
inherited
-
set(T other, [int? entriesLength])
→ void
-
-
setAll(int index, Iterable<N> iterable)
→ void
-
Overwrites elements with the objects of
iterable
.
inherited
-
setAllEntriesEmpty()
→ void
-
Set all entries empty (zeroes).
-
setAllEntriesWith(T other)
→ void
-
Set all entries with
other
entries.
-
setAllEntriesWithValue(N value)
→ void
-
Set all entries with
value
.
-
setEntry(int index, E entry)
→ void
-
Set entry at
index
with entry
.
-
setEntryEmpty(int index)
→ void
-
Sets entry at
index
empty (zeroes).
-
setEntryFiltered(int index, N filter(N n))
→ E
-
Sets entry at
index
with values filtered by filter
.
-
setEntryFilteredX4(int index, E filter(E entry))
→ E
-
-
setEntryValues1(int entryIndex, N v0)
→ void
-
Sets entry at
entryIndex
and value 1 to v0
.
-
setEntryValues2(int entryIndex, N v0, N v1)
→ void
-
Sets entry at
entryIndex
and values 1 and 2 to v0
and v1
.
-
setEntryValues3(int entryIndex, N v0, N v1, N v2)
→ void
-
Sets entry at
entryIndex
and values 1, 2 and 3 to v0
, v1
and v2
.
-
setEntryValues4(int entryIndex, N v0, N v1, N v2, N v3)
→ void
-
Sets entry at
entryIndex
and values 1, 2, 3 and 4 to v0
, v1
, v2
and v3
.
-
setEntryWithRandomValues(int index, N scale, [Random? rand])
→ E
-
Sets entry at
index
with a random value.
-
setEntryWithValue(int index, N value)
→ E
-
Sets entry at
index
with value
.
-
Set the extra values (values over length) with
value
.
-
Set extra values to one. Calls setExtraValues with one.
-
Set extra values to zero. Calls setExtraValues with zero.
-
setRange(int start, int end, Iterable<N> iterable, [int skipCount = 0])
→ void
-
Writes some elements of
iterable
into a range of this list.
inherited
-
setValue(int valueIndex, N newValue)
→ void
-
Sets a value at
valueIndex
with newValue
.
-
setValueFromEntry(E entry, int offset, N value)
→ E
-
-
shuffle([Random? random])
→ void
-
Shuffles the elements of this list randomly.
inherited
-
singleWhere(bool test(N element), {N orElse()?})
→ N
-
The single element that satisfies
test
.
inherited
-
skip(int count)
→ Iterable<N>
-
Creates an Iterable that provides all but the first
count
elements.
inherited
-
skipWhile(bool test(N element))
→ Iterable<N>
-
Creates an
Iterable
that skips leading elements while test
is satisfied.
inherited
-
sort([int compare(N a, N b)?])
→ void
-
Sorts this list according to the order specified by the
compare
function.
inherited
-
sublist(int start, [int? end])
→ List<N>
-
Returns a new list containing the elements between
start
and end
.
inherited
-
subtract(T other)
→ T
-
Subtract all entries with
other
entries.
-
subtractAllEntriesTo(E entry, T destiny)
→ void
-
Multiply all entries with
entry
and subtract from destiny
.
-
subtractTo(T other, T destiny)
→ void
-
Subtract all entries with
other
and save to destiny
.
-
subtractToEntry(int index, E entry)
→ void
-
-
take(int count)
→ Iterable<N>
-
Creates a lazy iterable of the
count
first elements of this iterable.
inherited
-
takeWhile(bool test(N element))
→ Iterable<N>
-
Creates a lazy iterable of the leading elements satisfying
test
.
inherited
-
toList({bool growable = true})
→ List<N>
-
Creates a List containing the elements of this Iterable.
inherited
-
toN(num n)
→ N
-
Converts num
n
to N
.
-
toSet()
→ Set<N>
-
Creates a Set containing the same elements as this iterable.
inherited
-
toString({int maxElements = 10, bool entries = false, bool infos = false})
→ String
-
A string representation of this object.
override
-
toStringEntries([int maxEntriesToString = 4])
→ String
-
-
toStringValues([int maxValuesToString = 10])
→ String
-
-
toStringWithEntries([int maxEntriesToString = 4])
→ String
-
-
toStringWithValues([int maxValuesToString = 10])
→ String
-
-
valuesToEntries(List<N> values)
→ List<E>
-
Converts
values
to a List of entries E
.
-
where(bool test(N element))
→ Iterable<N>
-
Creates a new lazy Iterable with all elements that satisfy the
predicate
test
.
inherited
-
whereType<T>()
→ Iterable<T>
-
Creates a new lazy Iterable with all elements that have type
T
.
inherited
Operators
-
operator +(List<N> other)
→ List<N>
-
Returns the concatenation of this list and
other
.
inherited
-
operator ==(Object other)
→ bool
-
The equality operator.
inherited
-
operator [](int valueIndex)
→ N
-
The object at the given
index
in the list.
override
-
operator []=(int valueIndex, N value)
→ void
-
Sets the value at the given
index
in the list to value
.
override
Static Methods
-
calcNeededBlocks(int size, int blockSize)
→ int
-
-
calcNeededBlocksChunks(int size, int blockSize, int chunks)
→ int
-
-
fromFormat<N extends num, E, T extends Signal<N, E, T>>(String format, {int? size, List<N>? values, List<E>? entries})
→ Signal<N, E, T>
-