Examples of OODoubleArray


Examples of org.timepedia.chronoscope.client.util.junit.OODoubleArray

    assertEquals(new Interval(10, 10), ds.getRangeExtrema(0));
    assertEquals(0.0, ds.getMinDomainInterval());
  }
 
  public void testGeneral() {
    OODoubleArray domain = new OODoubleArray(new double[] {1000, 2000, 3000, 4000});
    OODoubleArray range = new OODoubleArray(new double[] {10, 50, 40, 60});
   
    DatasetRequest.Basic request = dsMaker.newRequest(domain.getArray(), range.getArray());
   
    // Basic test that verifies that given the same dataset values, an
    // immutable dataset and a mutable dataset (which have different code
    // paths for populating their underlying Array2D objects) produce
    // the same logical dataset state.
View Full Code Here

Examples of org.timepedia.chronoscope.client.util.junit.OODoubleArray

    int numMipLevels = (int)MathUtil.log2(domain.size()) + 1;
    assertEqual(ds, mutableDs, numMipLevels);
  }
 
  private Dataset createMutableDataset(DatasetRequest.Basic request) {
    OODoubleArray domain = new OODoubleArray(request.getDomain());
    OODoubleArray range = new OODoubleArray(request.getRangeTupleSlice(0));
    request.setDomain(domain.removeLast().getArray());
    request.setRangeTupleSlice(0, range.removeLast().getArray());
   
    MutableDataset ds = dsFactory.createMutable(request);
    ds.mutate(Mutation.append(domain.getLast(), range.getLast()));
   
    return ds;
  }
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.