public MetricValue(Graph graph) : base("Value", graph, InputPort.CreateMany(), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Value))) { TimeValue = new TimeLocatedValue(0, TimeStamp.Zero()); }
public MetricAdder() : base("Adder", InputPort.CreateMany(InputPort.Create("inA", PortDataType.Array), InputPort.Create("inB", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { }
public MetricFilter() : base("Filter", InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { Fc = 100000; }
public MetricHalfrate(Graph graph) : base("Half Rate", graph, InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { _portInp = (DataInputPort)InputPorts[0]; _portOut = (DataOutputPort)OutputPorts[0]; }
public MetricMultiplyValue(Graph graph) : base("Multiply", graph, InputPort.CreateMany(InputPort.Create("in", PortDataType.Array), InputPort.Create("f", PortDataType.Value)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { _portInp = (DataInputPort)InputPorts[0]; _inputValue = (ValueInputPort)InputPorts[1]; _portOut = (DataOutputPort)OutputPorts[0]; }
public MetricFFTBandEnergy(Graph graph) : base("Band Energy", graph, InputPort.CreateMany( InputPort.Create("in", PortDataType.FFT)), OutputPort.CreateMany( OutputPort.Create("out", PortDataType.Value))) { _portInp = (FFTInputPort)InputPorts[0]; _portOut = (ValueOutputPort)OutputPorts[0]; }
public MetricFilter(Graph graph) : base("Filter", graph, InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { _portInp = (DataInputPort)InputPorts[0]; _portOut = (DataOutputPort)OutputPorts[0]; Fc = 100000; }
public MetricFFT(Graph graph) : base("FFT", graph, InputPort.CreateMany( InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany( OutputPort.Create("out", PortDataType.FFT))) { _portInp = (DataInputPort)InputPorts[0]; _portOut = (FFTOutputPort)OutputPorts[0]; FFTSize = 2048; }
public DeviceNode(IDevicePort port) : base("Dev Port", InputPort.CreateMany(), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { Port = port; Port.OnBufferReady += Port_OnBufferReady; Port.SamplerateChanged += Port_SamplerateChanged; OutputPorts[0].Samplerate = Port.Samplerate; }
public MetricRms() : base("Number Sink", InputPort.CreateMany(InputPort.Create("In", PortDataType.Array), InputPort.Create("Sqr", PortDataType.Value)), OutputPort.CreateMany()) { }
public MetricHalfrate() : base("Half Rate", InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { }
public MetricSlowProcess() : base("Slow Process", InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { }
public MetricPower() : base("Power", InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)), OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array))) { }
public FileNode(Graph g) : base("File", g, InputPort.CreateMany(), OutputPort.CreateMany(OutputPort.Create("Out", PortDataType.Array))) { _portOut = (DataOutputPort)OutputPorts[0]; }
public MetricValueRange(Graph graph) : base("Range", graph, InputPort.CreateMany(), OutputPort.CreateMany(OutputPort.Create("Out", PortDataType.Value))) { _portOut = (ValueOutputPort)OutputPorts[0]; }