outdanax.blogg.se

Idl round
Idl round





If this keyword is not present or is zero, the median is found over the entire variable and is returned as a scalar value. Set this keyword to the dimension over which to find the median values of the variable. The neighborhood has the same number of dimensions as the variable. The size of the one- or two-dimensional neighborhood to be used for the median filter. The median value of the variable if one parameter is present, or applies a one- or two-dimensional median filter of the specified width to the variable and returns the result. Print the median value of a 15-element vector: num = PRINT, num. The IDL_Number::Median method returns the median value of a numeric vector. Elements with the value NaN or Infinity are treated as missing data. Set this keyword to cause the routine to check for occurrences of the IEEE floating-point values NaN or Infinity in the variable. If this keyword is set, computations are done in double precision arithmetic. In this case the result is an array with one less dimension than the variable. If this keyword is present, the mean is only calculated across a single dimension. If this keyword is not present or is zero, the mean is computed across all dimensions of the variable. Set this keyword to a scalar indicating the dimension across which to calculate the mean. The average value of the variable's elements. Print the mean value of a 15-element vector: num = PRINT, num. The IDL_Number::Mean method computes the mean of the numeric vector. If the variable is double-precision, the result will be double-precision, otherwise the result will be single-precision floating-point. Print the imaginary parts of a value: num = COMPLEX(, ) PRINT, num. The IDL_Number::Imaginary method returns the imaginary part of a complex-valued variable. This is useful for situations in which a floating point number contains a value too largefor a 32-bit integer. If set, the result type is 64-bit integer regardless of the variable's type. Print the floor of a number: num = 5.9 PRINT, num. The IDL_Number::Floor method returns the closest integer less than or equal to the variable. This is useful for situations in which a floating point number contains a value too large for a 32-bit integer. In all other cases, Result is a 32-bit long integer with the same structure as the variable. If the variable is of type integer, its Result has the same value and type. Print the ceil of a number: num = 5.1 PRINT, num. The IDL_Number::Ceil method returns the closest integer greater than or equal to the variable. See Thread Pool Keywords for more information. In addition, you can use the thread pool keywords TPOOL_MAX_ELTS, TPOOL_MIN_ELTS, and TPOOL_NOTHREAD to override the defaults established by !CPU for a single invocation of this routine. The values stored in the !CPU system variable control whether IDL uses the thread pool for a given computation. Many of the methods for IDL_Number are written to make use of IDL's thread pool, which can increase execution speed on systems with multiple CPUs.

  • Min: Return the value of the smallest element.Īdditional Information Thread Pool Keywords.
  • Max: Return the value of the largest element.
  • In addition, because IDL_Number is a subclass of IDL_Variable, all of the IDL_Variable methods are also available. The IDL_Number class contains static methods that are available for all IDL numbers.







    Idl round