congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ComplexType.getRealDouble
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.imagej/imagej-deprecated

@Override
public boolean holds(T val1, U val2) {
  return (val1.getRealDouble() != val2.getRealDouble()) ||
      (val1.getImaginaryDouble() != val2.getImaginaryDouble());
}
origin: net.imagej/imagej-deprecated

/**
 * Gets the square of the modulus (magnitude, radius, r, etc.) of a given
 * complex number
 */
public static double getModulus2(ComplexType<?> z) {
  return
    z.getRealDouble()*z.getRealDouble() +
    z.getImaginaryDouble()*z.getImaginaryDouble();
}

origin: net.imglib2/imglib2-ops

@Override
public RealType<?> compute(ComplexType<?> input, RealType<?> output) {
  output.setReal(input.getRealDouble());
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public boolean holds(T val1, U val2) {
  return (val1.getRealDouble() == val2.getRealDouble()) &&
      (val1.getImaginaryDouble() == val2.getImaginaryDouble());
}
origin: net.imagej/imagej-deprecated

@Override
public boolean holds(T val1, U val2) {
  return (val1.getRealDouble() == val2.getRealDouble()) &&
      (val1.getImaginaryDouble() == val2.getImaginaryDouble());
}
origin: net.imglib2/imglib2-ops

@Override
public O compute(I z, O output) {
  double denom = z.getRealDouble()*z.getRealDouble() + z.getImaginaryDouble()*z.getImaginaryDouble();
  double x = z.getRealDouble() / denom;
  double y = -z.getImaginaryDouble() / denom;
  output.setComplexNumber(x,y);
  return output;
}

origin: net.imglib2/imglib2-ops

@Override
public O compute(I1 z1, I2 z2, O output) {
  double x = Math.abs(z1.getRealDouble() - z2.getRealDouble());
  double y = Math.abs(z1.getImaginaryDouble() - z2.getImaginaryDouble());
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imagej/imagej-deprecated

@Override
public O compute(I1 z1, I2 z2, O output) {
  double x = Math.abs(z1.getRealDouble() - z2.getRealDouble());
  double y = Math.abs(z1.getImaginaryDouble() - z2.getImaginaryDouble());
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public O compute(I1 z1, I2 z2, O output) {
  double x = z1.getRealDouble() - z2.getRealDouble();
  double y = z1.getImaginaryDouble() - z2.getImaginaryDouble();
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public O compute(I1 z1, I2 z2, O output) {
  double x = (z1.getRealDouble() + z2.getRealDouble()) / 2;
  double y = (z1.getImaginaryDouble() + z2.getImaginaryDouble()) / 2;
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imagej/imagej-deprecated

@Override
public O compute(I1 z1, I2 z2, O output) {
  double x = (z1.getRealDouble() + z2.getRealDouble()) / 2;
  double y = (z1.getImaginaryDouble() + z2.getImaginaryDouble()) / 2;
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imagej/imagej-deprecated

@Override
public O compute(I z, O output) {
  double constant = Math.exp(z.getRealDouble());
  double x = constant * Math.cos(z.getImaginaryDouble());
  double y = constant * Math.sin(z.getImaginaryDouble());
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public O compute(I z, O output) {
  double constant = Math.exp(z.getRealDouble());
  double x = constant * Math.cos(z.getImaginaryDouble());
  double y = constant * Math.sin(z.getImaginaryDouble());
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public void compute(INPUT input, R r) {
  complexFunc.compute(input, cType);
  r.setReal(cType.getRealDouble());
}
origin: net.imagej/imagej-deprecated

@Override
public O compute(I z, O output) {
  double x = -z.getRealDouble();
  double y = -z.getImaginaryDouble();
  output.setComplexNumber(x,y);
  return output;
}

origin: net.imglib2/imglib2-ops

@Override
public O compute(I z, O output) {
  double x = z.getRealDouble();
  double y = -z.getImaginaryDouble();
  output.setComplexNumber(x, y);
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public O compute(I1 z1, I2 z2, O output) {
  output.setComplexNumber(z2.getRealDouble(), z2.getImaginaryDouble());
  return output;
}
origin: net.imagej/imagej-deprecated

@Override
public void compute(INPUT input, R r) {
  complexFunc.compute(input, cType);
  r.setReal(cType.getRealDouble());
}
origin: net.imagej/imagej-deprecated

@Override
public O compute(I z, O output) {
  output.setReal(z.getRealDouble());
  output.setImaginary(z.getImaginaryDouble());
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public void compute(long[] point, O output)
{
  accessor.setPosition(point);
  output.setReal(accessor.get().getRealDouble());
  output.setImaginary(accessor.get().getImaginaryDouble());
}
net.imglib2.type.numericComplexTypegetRealDouble

Popular methods of ComplexType

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • 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