congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ComplexType.setComplexNumber
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.imagej/imagej-deprecated

  /**
   * Sets the value of a complex number to a given (r,theta) combination
   */
  public static void setPolar(ComplexType<?> z, double r, double theta) {
    double x = r * Math.cos(theta);
    double y = r * Math.sin(theta);
    z.setComplexNumber(x, y);
  }
}
origin: net.imglib2/imglib2-ops

@Override
public ComplexType<?> compute(RealType<?> x, ComplexType<?> output) {
  output.setComplexNumber(0, x.getRealDouble());
  return output;
}
origin: net.imagej/imagej-deprecated

@Override
public ComplexType<?> compute(RealType<?> x, ComplexType<?> output) {
  output.setComplexNumber(0, x.getRealDouble());
  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.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 O compute(I z, O output) {
  double modulus = ComplexHelper.getModulus(z);
  double argument = ComplexHelper.getArgument(z);
  double x = Math.log(modulus);
  double y = ComplexHelper.getPrincipleArgument(argument);
  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 void compute(long[] point, T output) {
  dataArray.compute(point, tmp);
  output.setComplexNumber(tmp.getRealDouble(), tmp.getImaginaryDouble());
}
origin: net.imglib2/imglib2-ops

@Override
public void compute(long[] point, T output) {
  dataArray.compute(point, tmp);
  output.setComplexNumber(tmp.getRealDouble(), tmp.getImaginaryDouble());
}
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

  private void calcTermAtPoint(long[] oPosition, long[] iPosition, T xyTerm) {
    spatialFunction.compute(iPosition, funcVal);
    double val = ((double) oPosition[0]) * iPosition[0] / span[0];
    val += ((double) oPosition[1]) * iPosition[1] / span[1];
    spatialExponent.setComplexNumber(val, 0);
    multiplier.compute(MINUS_TWO_PI_I, spatialExponent, constant);
    exper.compute(constant, expVal);
    multiplier.compute(funcVal, expVal, xyTerm);
  }
}
origin: net.imglib2/imglib2-ops

  private void calcTermAtPoint(long[] oPosition, long[] iPosition, T uvTerm) {
    freqFunction.compute(iPosition, funcVal);
    double val = ((double) oPosition[0]) * iPosition[0] / span[0];
    val += ((double) oPosition[1]) * iPosition[1] / span[1];
    spatialExponent.setComplexNumber(val, 0);
    multiplier.compute(TWO_PI_I, spatialExponent, constant);
    exper.compute(constant, expVal);
    multiplier.compute(funcVal, expVal, uvTerm);
  }
}
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.imglib2/imglib2-ops

@Override
public void compute(INPUT input, C value) {
  realFunc1.compute(input, real1);
  realFunc2.compute(input, real2);
  value.setComplexNumber(real1.getRealDouble(),real2.getRealDouble());
}

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;
}

net.imglib2.type.numericComplexTypesetComplexNumber

Popular methods of ComplexType

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Notification (javax.management)
  • Runner (org.openjdk.jmh.runner)
  • Top 15 Vim 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