Package com.google.uzaygezen.core

Examples of com.google.uzaygezen.core.CompactHilbertCurve


    final byte[][] qualifiers = {"NICE".getBytes(Charsets.ISO_8859_1),};
    MultiDimensionalSpec spec = new MultiDimensionalSpec(Ints.asList(30, 10, 25));
    // Add some data.
    Random rnd = new Random(TestUtils.SEED);
    int[][] data = generateData(spec, 1 << 16, rnd);
    SpaceFillingCurve sfc = new CompactHilbertCurve(spec);
    logger.log(Level.INFO, "Populating table with up to {0} rows.", data.length);
    populateTable(family, qualifiers, spec, data, sfc, table);
    int cacheSize = 1 << 8;
    logger.log(Level.INFO, "Building cache of size {0}.", cacheSize);
    // The cache is optional.
View Full Code Here


      bitsPerDimension.add(bitsOfPrecision);
      totalPrecision += bitsOfPrecision;
    }

    final CompactHilbertCurve compactHilbertCurve = new CompactHilbertCurve(
        new MultiDimensionalSpec(
            bitsPerDimension));
    final PrimitiveHilbertSFCOperations testOperations = new PrimitiveHilbertSFCOperations();

    // assume the unbounded SFC is the true results, regardless they should
View Full Code Here

          bitsOfPrecision);

      bitsPerDimension.add(bitsOfPrecision);
    }

    final CompactHilbertCurve compactHilbertCurve = new CompactHilbertCurve(
        new MultiDimensionalSpec(
            bitsPerDimension));
    final PrimitiveHilbertSFCOperations testOperations = new PrimitiveHilbertSFCOperations();

    // assume the unbounded SFC is the true results, regardless they should
View Full Code Here

    for (final SFCDimensionDefinition dimension : dimensionDefs) {
      bitsPerDimension.add(dimension.getBitsOfPrecision());
      totalPrecision += dimension.getBitsOfPrecision();
    }

    compactHilbertCurve = new CompactHilbertCurve(
        new MultiDimensionalSpec(
            bitsPerDimension));

    dimensionDefinitions = dimensionDefs;
    setOptimalOperations(
View Full Code Here

TOP

Related Classes of com.google.uzaygezen.core.CompactHilbertCurve

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.