timeflux.nodes.random


timeflux.nodes.random: generate random data

random

class timeflux.nodes.random.Random(columns=5, rows_min=2, rows_max=10, value_min=0, value_max=9, names=None, seed=None)[source]

Bases: timeflux.core.node.Node

Helper class that provides a standard way to create an ABC using inheritance.

Return random integers between value_min and value_max (inclusive)

update()[source]

Update the input and output ports.

class timeflux.nodes.random.Signal(channels=5, rate=100, amplitude=200, names=None, seed=None)[source]

Bases: timeflux.core.node.Node

Helper class that provides a standard way to create an ABC using inheritance.

Return random floats within the given peak-to-peak amplitude

update()[source]

Update the input and output ports.