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

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

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

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.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 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 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.imagej/imagej-deprecated

@Override
public RealType<?> compute(ComplexType<?> input, RealType<?> output) {
  output.setReal(input.getImaginaryDouble());
  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.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 x = -z.getRealDouble();
  double y = -z.getImaginaryDouble();
  output.setComplexNumber(x,y);
  return output;
}

origin: net.imagej/imagej-deprecated

@Override
public void compute(INPUT input, R r) {
  complexFunc.compute(input, cType);
  r.setReal(cType.getImaginaryDouble());
}
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 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.numericComplexTypegetImaginaryDouble

Popular methods of ComplexType

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

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
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