congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • String (java.lang)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • JCheckBox (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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