Package org.renjin

Examples of org.renjin.DistanceMatrix


  @Test
  public void nestedDistance() {

    DoubleArrayVector vector = new DoubleArrayVector(5,10,3,2,1);
    DistanceMatrix matrix = new DistanceMatrix(vector);
    System.out.println(Deparse.deparseExp(null, matrix));
    DeferredMean mean = new DeferredMean(matrix, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);

    compute(graph);
View Full Code Here


  @Test
  public void nestedDistanceMatrixAndUnaryOp() {

    DoubleArrayVector vector = new DoubleArrayVector(5,10,3,2,1);
    DistanceMatrix matrix = new DistanceMatrix(vector);
    System.out.println(Deparse.deparseExp(null, matrix));
    Vector negative = new R$primitive$$minus$deferred_d(matrix, AttributeMap.EMPTY);
    DeferredMean mean = new DeferredMean(negative, AttributeMap.EMPTY);
    DeferredGraph graph = new DeferredGraph(mean);
View Full Code Here

TOP

Related Classes of org.renjin.DistanceMatrix

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.