Examples of calculate()


Examples of com.centraview.sale.proposal.ItemLines.calculate()

          e.printStackTrace();
        } // end of catch block (Exception)
      } // end of while loop (st.hasMoreTokens())
    } // end of if statement (newItemID != null && !newItemID.equals(""))

    itemLines.calculate();
    proposalVO.setItemLines(itemLines);
    return proposalVO;
  } // end of calculateProposalItems method

  /**
 
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ConnectionCalculator.calculate()

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c.getInputLayer(), i1);
  vp.addValues(c.getOutputLayer(), o);

  calc.calculate(connections, vp, c.getOutputLayer());

  assertEquals(3, o.get(0, 0), 0);
  assertEquals(4, o.get(1, 0), 0);
  assertEquals(7, o.get(2, 0), 0);
  assertEquals(8, o.get(3, 0), 0);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ConnectionCalculator.calculate()

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c.getInputLayer(), a1);
  vp.addValues(c.getOutputLayer(), o);

  ConnectionCalculator calc = new AparapiMaxPooling2D();
  calc.calculate(connections, vp, c.getOutputLayer());

  ValuesProvider activations = new ValuesProvider();
  activations.addValues(c.getInputLayer(), a1);

  Matrix bpo = new Matrix(32, 2);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.ConnectionCalculator.calculate()

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c.getInputLayer(), a1);
  Matrix o = new Matrix(8, 2);
  vp.addValues(c.getOutputLayer(), o);

  calc.calculate(connections, vp, c.getOutputLayer());

  ValuesProvider activations = new ValuesProvider();
  activations.addValues(c.getInputLayer(), a1);

  BackpropagationAveragePooling2D bp = new BackpropagationAveragePooling2D();
View Full Code Here

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiAveragePooling2D.calculate()

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c.getInputLayer(), i1);
  vp.addValues(c.getOutputLayer(), o);

  calc.calculate(connections, vp, c.getOutputLayer());

  assertEquals(1.75, o.get(0, 0), 0);
  assertEquals(2.75, o.get(1, 0), 0);
  assertEquals(5.75, o.get(2, 0), 0);
  assertEquals(6.75, o.get(3, 0), 0);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiAveragePooling2D.calculate()

  ValuesProvider vp = new ValuesProvider();
  vp.addValues(c.getInputLayer(), a1);
  Matrix o = new Matrix(8, 2);
  vp.addValues(c.getOutputLayer(), o);

  calc.calculate(connections, vp, c.getOutputLayer());

  ValuesProvider activations = new ValuesProvider();
  activations.addValues(c.getInputLayer(), a1);

  BackpropagationAveragePooling2D bp = new BackpropagationAveragePooling2D();
View Full Code Here

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiConv2D.calculate()

  Matrix o = new Matrix(4, 1);

  AparapiConv2D conv = new AparapiConv2DFF(c, 1);

  conv.calculate(c, i1, o);

  // most simple case
  assertEquals(164, o.get(0, 0), 0);
  assertEquals(184, o.get(0, 1), 0);
  assertEquals(224, o.get(0, 2), 0);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiConv2D.calculate()

  Matrix o = new Matrix(8, 1);

  AparapiConv2D conv = new AparapiConv2DFF(c, 1);

  conv.calculate(c, i1, o);

  assertEquals(164, o.get(0, 0), 0);
  assertEquals(184, o.get(0, 1), 0);
  assertEquals(224, o.get(0, 2), 0);
  assertEquals(244, o.get(0, 3), 0);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiConv2DFF.calculate()

  Matrix o = new Matrix(4, 1);

  AparapiConv2D conv = new AparapiConv2DFF(c, 1);

  conv.calculate(c, i1, o);

  // most simple case
  assertEquals(164, o.get(0, 0), 0);
  assertEquals(184, o.get(0, 1), 0);
  assertEquals(224, o.get(0, 2), 0);
View Full Code Here

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiConv2DFF.calculate()

  Matrix o = new Matrix(8, 1);

  AparapiConv2D conv = new AparapiConv2DFF(c, 1);

  conv.calculate(c, i1, o);

  assertEquals(164, o.get(0, 0), 0);
  assertEquals(184, o.get(0, 1), 0);
  assertEquals(224, o.get(0, 2), 0);
  assertEquals(244, o.get(0, 3), 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.