Examples of addValues()


Examples of com.extjs.gxt.charts.client.model.charts.CylinderBarChart.addValues()

      bchart.setTooltip("$#val#");
      for (int t = 0; t < 4; t++) {
        if ((t + 1) == (Math.ceil(segments / 3.0))) {
          bchart.addBars(new BarChart.Bar(Random.nextInt(50) + 50, "#aa88ff"));
        } else {
          bchart.addValues(Random.nextInt(50) + 50);
        }
      }
      cm.addChartConfig(bchart);
      return cm;
    }
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.charts.FilledBarChart.addValues()

      cm.setYAxisLabelStyle(10, "#009900");
      cm.setYAxis(ya);
      FilledBarChart bchart = new FilledBarChart("#6666ff", "#000066");
      bchart.setTooltip("$#val#");
      for (int t = 0; t < segments; t++) {
        bchart.addValues(Random.nextInt(5000) + 10000);
      }
      cm.addChartConfig(bchart);
      return cm;
    }
  }
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.charts.LineChart.addValues()

    for (ModelData m : store.getModels()) {
      Number n = getValue(m);
      if (n == null) {
        chart.addNullValue();
      } else {
        chart.addValues(n);
        maxYValue = first ? n.doubleValue() : Math.max(maxYValue, n.doubleValue());
        minYValue = first ? n.doubleValue() : Math.min(minYValue, n.doubleValue());
        first = false;
      }
      if (xAxis != null) {
View Full Code Here

Examples of com.extjs.gxt.charts.client.model.charts.SketchBarChart.addValues()

      XAxis xa = new XAxis();
      xa.setLabels("John", "Frank", "Mary", "Alec", "Mike", "James");
      cm.setXAxis(xa);
      SketchBarChart sketch = new SketchBarChart("#00aa00", "#009900", 6);
      sketch.setTooltip("#val# points");
      sketch.addValues(Random.nextInt(6) + 1, Random.nextInt(5) + 1, Random.nextInt(3) + 1);
      SketchBarChart.SketchBar skb = new SketchBarChart.SketchBar(Random.nextInt(5) + 5);
      skb.setColour("#6666ff");
      skb.setTooltip("Winner!<br>#val# points");
      sketch.addBars(skb);
      sketch.addValues(Random.nextInt(5) + 1, Random.nextInt(5) + 1);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ValuesProvider.addValues()

      ValuesProvider vp = mbe.getResults();
      if (vp == null) {
          vp = new ValuesProvider();
      }

      vp.addValues(n.getInputLayer(), input.getInput());
      n.getLayerCalculator().calculate(n, n.getOutputLayer(), calculatedLayers, vp);

      outputError.addItem(vp.getValues(n.getOutputLayer()), input.getTarget());
        }
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ValuesProvider.addValues()

  NNFactory.addFullyConnectedLayer(nn, h, 2, 3, true);
  NNFactory.addFullyConnectedLayer(nn, o, 4, 1, true);

  Matrix im = new Matrix(2, 2);
  vp.addValues(i, im);
  Matrix hm1 = vp.getValues(h, 3);
  Matrix hm2 = new Matrix(4, 2);
  vp.addValues(h, hm2);

  Matrix om = vp.getValues(o);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ValuesProvider.addValues()

  Matrix im = new Matrix(2, 2);
  vp.addValues(i, im);
  Matrix hm1 = vp.getValues(h, 3);
  Matrix hm2 = new Matrix(4, 2);
  vp.addValues(h, hm2);

  Matrix om = vp.getValues(o);

  assertTrue(im == vp.getValues(i, 2));
  assertTrue(im == vp.getValues(i));
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ValuesProvider.addValues()

      }

      while ((input = ip.getNextInput()) != null) {
    calculatedLayers.clear();
    calculatedLayers.add(n.getInputLayer());
    results.addValues(n.getInputLayer(), input.getInput());
    n.getLayerCalculator().calculate(n, n.getOutputLayer(), calculatedLayers, results);

    if (getOutputError() != null) {
        getOutputError().addItem(results.getValues(n.getOutputLayer()), input.getTarget());
    }
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ValuesProvider.addValues()

  List<Connections> connections = new ArrayList<>();
  connections.add(c1);

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c1.getInputLayer(), i1);
  vp.addValues(ol, o);

  aws.calculate(connections, vp, ol);

  // most simple case
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ValuesProvider.addValues()

  List<Connections> connections = new ArrayList<>();
  connections.add(c1);

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c1.getInputLayer(), i1);
  vp.addValues(ol, o);

  aws.calculate(connections, vp, ol);

  // most simple case
  assertEquals(14, o.get(0, 0), 0);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.