Package ca.eandb.jmist.math

Examples of ca.eandb.jmist.math.Tuple$Filter


  private static LinearMatrix3 generateXYZ2Band() {
    double a[][] = new double[3][3];

    for (int i = 0; i < 3; i++) {
      final int _i = i;
      Tuple basis = ColorUtil.XYZ_WAVELENGTHS.map(new Tuple.Function() {
        public double apply(double value) {
          return MathUtil.inRangeCO(value, (400 + (100 * _i)) * 1e-9, (500 + (100 * _i)) * 1e-9) ? 1.0 : 0.0;
        }
      });

View Full Code Here


    this.white = new PolychromeColor();
    ArrayUtil.setAll(white.values, 1.0);
  }

  public PolychromeColorModel(double[] wavelengths) {
    this(new Tuple(wavelengths));
  }
View Full Code Here

    List<Filter> keyFilters = new ArrayList<Filter>();
    if (query.hasFilter()) {
      keyFilters.add(query.getFilter());
    }
    if (lastKey != null) {
      Filter lowerBound = DatastoreHelper.makeFilter(DatastoreHelper.KEY_PROPERTY_NAME,
          PropertyFilter.Operator.GREATER_THAN_OR_EQUAL,
          DatastoreHelper.makeValue(lastKey)).build();
      keyFilters.add(lowerBound);
    }
    if (nextKey != null) {
      Filter upperBound = DatastoreHelper.makeFilter(DatastoreHelper.KEY_PROPERTY_NAME,
          PropertyFilter.Operator.LESS_THAN,
          DatastoreHelper.makeValue(nextKey)).build();
      keyFilters.add(upperBound);
    }
    return Query.newBuilder(query).setFilter(makeFilter(keyFilters)).build();
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.math.Tuple$Filter

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.