Tabnine Logo
ComplexType.getPhaseDouble
Code IndexAdd Tabnine to your IDE (free)

How to use
getPhaseDouble
method
in
net.imglib2.type.numeric.ComplexType

Best Java code snippets using net.imglib2.type.numeric.ComplexType.getPhaseDouble (Showing top 2 results out of 315)

origin: net.imglib2/imglib2-ops

@Override
public boolean holds(T val1, U val2) {
  if (Math.abs(val1.getPowerDouble() - val2.getPowerDouble()) > rTol) return false;
  double theta1 = val1.getPhaseDouble();
  double theta2 = val2.getPhaseDouble();
  while ((theta1-theta2) > TWO_PI) theta2 += TWO_PI;
  while ((theta1-theta2) < -TWO_PI) theta1 += TWO_PI;
  // now theta1 and theta2 are within 2 pi of each other
  if (Math.abs(theta1-theta2) <= thetaTol) return true;
  return Math.abs(theta1-theta2) > (TWO_PI - thetaTol);
}
origin: net.imagej/imagej-deprecated

@Override
public boolean holds(T val1, U val2) {
  if (Math.abs(val1.getPowerDouble() - val2.getPowerDouble()) > rTol) return false;
  double theta1 = val1.getPhaseDouble();
  double theta2 = val2.getPhaseDouble();
  while ((theta1-theta2) > TWO_PI) theta2 += TWO_PI;
  while ((theta1-theta2) < -TWO_PI) theta1 += TWO_PI;
  // now theta1 and theta2 are within 2 pi of each other
  if (Math.abs(theta1-theta2) <= thetaTol) return true;
  return Math.abs(theta1-theta2) > (TWO_PI - thetaTol);
}
net.imglib2.type.numericComplexTypegetPhaseDouble

Popular methods of ComplexType

  • getRealFloat
  • setComplexNumber
  • getImaginaryFloat
  • getRealDouble
  • setReal
  • copy
  • createVariable
  • getImaginaryDouble
  • set
  • setImaginary
  • complexConjugate
  • getPowerDouble
  • complexConjugate,
  • getPowerDouble,
  • setZero,
  • getPhaseFloat,
  • getPowerFloat,
  • mul

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim 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