Package nom.tam.util

Class ComplexValue.Float

java.lang.Object
nom.tam.util.ComplexValue
nom.tam.util.ComplexValue.Float
Enclosing class:
ComplexValue

public static final class ComplexValue.Float extends ComplexValue
Single-precision complex values.
Since:
1.18
Author:
Attila Kovacs
  • Constructor Details

    • Float

      public Float(float re, float im)
      Instantiates a new single-precision complex number value with the specified real and imaginary components.
      Parameters:
      re - the real part
      im - thei maginary part
      Since:
      1.20
    • Float

      public Float(String str) throws IllegalArgumentException

      Instantiates a new single-precision complex number value from the string repressentation of it in a FITS header value. By default, it will parse complex numbers as a comma-separated pair of real values enclosed in a bracket, such as (1.0, -2.0), or standard real values, such as 123.456 or 123 (as real-only values). There can be any number of spaces around the brackets, number components or the comma.

      Parameters:
      str - the FITS string representation of the complex value
      Throws:
      IllegalArgumentException - if the supplied string does not appear to be a FITS standard representation of a complex value.
      Since:
      1.20