Package org.timepedia.chronoscope.client.util

Examples of org.timepedia.chronoscope.client.util.Array2D


  public MipMapChain mipmap(double[] domain, List<double[]> range) {
    ArgChecker.isNotNull(domain, "domain");
    ArgChecker.isNotNull(range, "range");

    Array2D mipMappedDomain = mipmapDomain(domain);
   
    List<Array2D> mipMappedRangeTuple = new ArrayList<Array2D>();
    for (int i = 0; i < range.size(); i++) {
      mipMappedRangeTuple.add(mipmapRange(range.get(i)));
    }
View Full Code Here


    if (mipMappedRangeTuple.isEmpty()) {
      throw new IllegalArgumentException("mipMappedRangeTuple list was empty");
    }
   
    for (int i = 0; i < mipMappedRangeTuple.size(); i++) {
      Array2D mipMappedRange = mipMappedRangeTuple.get(i);
      if (!mipMappedDomain.isSameSize(mipMappedRange)) {
        throw new IllegalArgumentException("mipMappedDoamin and " +
            "mipMappedRange(" + i + ") are difference sizes");
      }
    }
View Full Code Here

      }

      // Verify that multiDomain and multiRange have same number
      // of elements at each level
      for (int i = 1; i < mipmappedRangeTupleData.size(); i++) {
        Array2D mipmappedTupleSlice = mipmappedRangeTupleData.get(i);
        if (!mipmappedTupleSlice.isSameSize(mipmappedDomainData)) {
          throw new IllegalArgumentException(
              "i=" + i + ": domain and range mipmaps differ in size");
        }
      }
    }
View Full Code Here

    }

    if (datasetReq instanceof DatasetRequest.MultiRes) {
      // multiDomain and multiRange explicitly specified in request object.
      DatasetRequest.MultiRes multiResReq = (DatasetRequest.MultiRes) datasetReq;
      Array2D mipMappedDomain = multiResReq.getMultiresDomain();
      List<Array2D> mipMappedRangeTuples = multiResReq.getMultiResRangeTuples();
      mipMapChain = createMipMapChain(mipMappedDomain, mipMappedRangeTuples);
    } else if (datasetReq instanceof DatasetRequest.Basic) {
      // Use MipMapStrategy to calculate multiDomain and MultiRange from
      // the domain[] and range[] specified in the basic request.
View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.util.Array2D

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.