Tabnine Logo
PiecewiseUtilities.compare
Code IndexAdd Tabnine to your IDE (free)

How to use
compare
method
in
it.geosolutions.jaiext.piecewise.PiecewiseUtilities

Best Java code snippets using it.geosolutions.jaiext.piecewise.PiecewiseUtilities.compare (Showing top 9 results out of 315)

origin: geotools/geotools

if (PiecewiseUtilities.compare(previousMax, q) != 0) {
  Range valueRange = RangeFactory.create(previousMax, true, q, false);
origin: geosolutions-it/jai-ext

/**
 * Checks if the array is sorted
 */
public static boolean isSorted(final DefaultDomainElement1D[] domains) {
  if (domains == null)
    return true;
  for (int i = 1; i < domains.length; i++) {
    final DefaultDomainElement1D d1 = domains[i];
    assert !(d1.getInputMinimum() > d1.getInputMaximum()) : d1;
    final DefaultDomainElement1D d0 = domains[i - 1];
    assert !(d0.getInputMinimum() > d0.getInputMaximum()) : d0;
    if (compare(d0.getInputMaximum(), d1.getInputMinimum()) > 0) {
      return false;
    }
  }
  return true;
}
origin: it.geosolutions.jaiext.piecewise/jt-piecewise

/**
 * Checks if the array is sorted
 */
public static boolean isSorted(final DefaultDomainElement1D[] domains) {
  if (domains == null)
    return true;
  for (int i = 1; i < domains.length; i++) {
    final DefaultDomainElement1D d1 = domains[i];
    assert !(d1.getInputMinimum() > d1.getInputMaximum()) : d1;
    final DefaultDomainElement1D d0 = domains[i - 1];
    assert !(d0.getInputMinimum() > d0.getInputMaximum()) : d0;
    if (compare(d0.getInputMaximum(), d1.getInputMinimum()) > 0) {
      return false;
    }
  }
  return true;
}
origin: geosolutions-it/jai-ext

if (PiecewiseUtilities.compare(inMinimum, previous.getInputMaximum()) <= 0) {
  PiecewiseUtilities.domainElementsOverlap(elements, i);
origin: it.geosolutions.jaiext.piecewise/jt-piecewise

if (PiecewiseUtilities.compare(inMinimum, previous.getInputMaximum()) <= 0) {
  PiecewiseUtilities.domainElementsOverlap(elements, i);
origin: it.geosolutions.jaiext.piecewise/jt-piecewise

if (PiecewiseUtilities.compare(minDestination, maxDestination) == 0)
  return SingleDimensionTransformation.create(0, minDestination);
if (PiecewiseUtilities.compare(minSource, maxSource) == 0)
  throw new IllegalArgumentException("Impossible to map a single value to a range.");
origin: it.geosolutions.jaiext.piecewise/jt-piecewise

final int compareOutBounds = PiecewiseUtilities.compare(outputMinimum, outputMaximum);
final double scale = tempTransform.getScale();
if (Math.abs(scale) < 1E-6)
  if (PiecewiseUtilities.compare(getInputMaximum(), getInputMinimum()) == 0)
    setInverse(SingleDimensionTransformation.create(0, getInputMinimum()));
  else
origin: geosolutions-it/jai-ext

final int compareOutBounds = PiecewiseUtilities.compare(outputMinimum, outputMaximum);
final double scale = tempTransform.getScale();
if (Math.abs(scale) < 1E-6)
  if (PiecewiseUtilities.compare(getInputMaximum(), getInputMinimum()) == 0)
    setInverse(SingleDimensionTransformation.create(0, getInputMinimum()));
  else
origin: geosolutions-it/jai-ext

if (PiecewiseUtilities.compare(minDestination, maxDestination) == 0)
  return SingleDimensionTransformation.create(0, minDestination);
if (PiecewiseUtilities.compare(minSource, maxSource) == 0)
  throw new IllegalArgumentException("Impossible to map a single value to a range.");
it.geosolutions.jaiext.piecewisePiecewiseUtilitiescompare

Javadoc

Comparison between two double values

Popular methods of PiecewiseUtilities

  • createLinearTransform1D
    Create a linear transform mapping values from sampleValueRange to geophysicsValueRange.
  • equals
  • hash
    Alters the given seed with the hash code value computed from the given value. The givan object may b
  • binarySearch
    Array binary search taking into account the fact that the input value to search can be NaN Note: Thi
  • deepHashCode
    Returns a hash code for the specified object, which may be an array. This method returns one of the
  • domainElementsOverlap
    Checks whether or not two DomainElement1Ds input range overlaps
  • doubleValue
    Returns a double value for the specified number. If direction is non-zero, then this method will ret
  • ensureNonNull
    Makes sure that an argument is non-null.
  • getTolerance
    Gathers the tolerance for floating point comparisons
  • isSorted
    Checks if the array is sorted

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JLabel (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now