congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JLabel (javax.swing)
  • Best plugins for Eclipse
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