예제 #1
0
 public MetricValue(Graph graph)
     : base("Value", graph,
            InputPort.CreateMany(),
            OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Value)))
 {
     TimeValue = new TimeLocatedValue(0, TimeStamp.Zero());
 }
예제 #2
0
 public MetricAdder()
     : base("Adder",
            InputPort.CreateMany(InputPort.Create("inA", PortDataType.Array),
                                 InputPort.Create("inB", PortDataType.Array)),
            OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array)))
 {
 }
예제 #3
0
 public MetricFilter()
     : base("Filter",
            InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)),
            OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array)))
 {
     Fc = 100000;
 }
예제 #4
0
 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];
 }
예제 #5
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];
 }
예제 #6
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];
 }
예제 #7
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;
        }
예제 #8
0
 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;
 }
예제 #9
0
        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;
        }
예제 #10
0
 public MetricRms() : base("Number Sink",
                           InputPort.CreateMany(InputPort.Create("In", PortDataType.Array),
                                                InputPort.Create("Sqr", PortDataType.Value)),
                           OutputPort.CreateMany())
 {
 }
예제 #11
0
 public MetricHalfrate()
     : base("Half Rate",
            InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)),
            OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array)))
 {
 }
예제 #12
0
 public MetricSlowProcess()
     : base("Slow Process",
            InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)),
            OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array)))
 {
 }
예제 #13
0
 public MetricPower()
     : base("Power",
            InputPort.CreateMany(InputPort.Create("in", PortDataType.Array)),
            OutputPort.CreateMany(OutputPort.Create("out", PortDataType.Array)))
 {
 }
예제 #14
0
 public FileNode(Graph g)
     : base("File", g, InputPort.CreateMany(), OutputPort.CreateMany(OutputPort.Create("Out", PortDataType.Array)))
 {
     _portOut = (DataOutputPort)OutputPorts[0];
 }
예제 #15
0
 public MetricValueRange(Graph graph) : base("Range", graph, InputPort.CreateMany(), OutputPort.CreateMany(OutputPort.Create("Out", PortDataType.Value)))
 {
     _portOut = (ValueOutputPort)OutputPorts[0];
 }