Package ca.nengo.util

Examples of ca.nengo.util.TimeSeries


    environment.run(startTime, endTime);

    float [][]values;
    float []time;

    TimeSeries filtered = DataUtils.filter(probe.getData(),tau);
    values = filtered.getValues();
    time = filtered.getTimes();

    int t0 = (int)(Math.ceil(time.length/2d));
    int t1 = time.length;
    int k;

    float[][] valuesT = new float[values[0].length][t1-t0];
    TimeSeries stateData = state.getData();

    int d = stateData.getValues()[0].length;
    TimeSeriesFunction []evalPointsFunction = new TimeSeriesFunction[d];

    float [][]evalPoints = new float[t1-t0][d];

    for(int i=0;i<d;i++)
View Full Code Here


  /**
   * @see ca.nengo.model.Probeable#getHistory(java.lang.String)
   */
    @Override
    public TimeSeries getHistory(String stateName) throws SimulationException {
    TimeSeries result = null;

    Origin origin = myDecodedOrigins.get(stateName);
    DecodedTermination t = myDecodedTerminations.get(stateName);

    if (origin != null) {
View Full Code Here

            SortableMutableTreeNode targetNode = createSortableNode(top0, (Node) target);

            /*
             * Make a clone of the data
             */
            TimeSeries probeData = (TimeSeries) Util.cloneSerializable(probe.getData());

            DefaultMutableTreeNode stateNode = new ProbeDataNode(probeData,
                    probe.getStateName(), plotterStrategy.isApplyTauFilterByDefault(probe));

            targetNode.add(stateNode);
View Full Code Here

  private float[] getDynamicDecoder(int i, float input, float startTime, float endTime) {
    float[] result = myDecoders[i];
    if (mySTPDynamicsTemplate != null) { //TODO: could use a NullDynamics here instead of null (to allow nulling in config tree)
      //TODO: could recycle a mutable time series here to avoid object creation
      TimeSeries inputSeries = new TimeSeries1DImpl(new float[]{startTime, endTime}, new float[]{input, input}, Units.UNK);
      TimeSeries outputSeries = myIntegrator.integrate(mySTPDynamics[i], inputSeries);
      float scaleFactor = outputSeries.getValues()[outputSeries.getValues().length-1][0];
      mySTPHistory[i] = scaleFactor;
      result = MU.prod(result, scaleFactor);
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of ca.nengo.util.TimeSeries

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.