|
Programming Reference for VirtualLab Fusion
2026.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Support class containing the manipulations for numerical data arrays.
More...
Static Public Member Functions | |
| static DataArrayBase | AddConstant_Complex (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Add a constant to certain subsets. The operation will be a complex addition. | |
| static DataArrayBase | AddConstant_Separately (DataArrayBase dataArray, double realPartOrAmplitude, double imaginaryPartOrPhase, bool amplitudePhaseRepresentation, int[] subsetIndices) |
| Add a constant to certain subsets. The operation will consist of two independent real valued operations for the complex parts respectively. | |
| static DataArrayBase | AppendSubsetsFromAnotherDataArray (DataArrayBase targetDataArrayBase, DataArrayBase sourceDataArrayBase, int[] indicesToAppend, out string warnings) |
| Method that appends the subsets of one data array to another. The data arrays have to have the same number of sampling points (for 2D: in each direction). | |
| static DataArray1D | AppendSubsetsFromAnotherDataArrayWithInterpolationToTargetCoordinates (DataArray1D targetDataArray1D, DataArray1D sourceDataArray1D, int[] indicesToAppend, out string warnings) |
| Method that appends subsets from a source data array to another one (the target data array). The source will be interpolated to the coordinates of the target. | |
| static DataArray2D | AppendSubsetsFromAnotherDataArrayWithInterpolationToTargetCoordinates (DataArray2D targetDataArray2D, DataArray2D sourceDataArray2D, int[] indicesToAppend, out string warnings) |
| Method that appends subsets from a source data array to another one (the target data array). The source will be interpolated to the coordinates of the target. | |
| static DataArray1D | AppendSubsetsFromAnotherDataArrayWithMerging (DataArray1D targetDataArray1D, DataArray1D sourceDataArray1D, int[] indicesToAppend, out string warnings) |
| Method that appends subsets from a source data array to another one (the target data array). The result will have merged coordinates. | |
| static DataArray2D | AppendSubsetsFromAnotherDataArrayWithMerging (DataArray2D targetDataArray2D, DataArray2D sourceDataArray2D, int[] indicesToAppend, out string warnings) |
| Method that appends subsets from a source data array to another one (the target data array). The result will have merged coordinates. | |
| static DataArrayBase | ArrayArrayOperation (ArrayArrayOperationType operationType, DataArrayBase da1, DataArrayBase da2, List< Tuple< int, int > > indicesOfOperandSubsets, out string warnings, bool addHintForCommonNonequidistantCoordinatesOfCFSs=false) |
| Array-array-operation of two data arrays. Does not work for convolution! For convolution of two data arrays please use DataArrayManipulations.Convolution(...). | |
| static double | CalculateIntegralFor1DDataByTrapezoidRule (DataArray1D daToIntegrate, int subsetIndex=0) |
| support method to calculate the integral under a 1D data array by trapezoid rule | |
| static ChromaticFieldsSetBase | CalculateSumOfDataArraysPerWavelength (List< DataArrayBase > inputDataArrays, List< double > listAssociatedWavelengths, string prefixForCommentsOfSubsets, InterpolationMethod interpolationMethodToUseForAllDataArrays, double oversamplingFactor) |
| public support method to calculate the sum of all data array per wavelength (the wavelength information is provided by the input variable "listAssociatedWavelengths") | |
| static DataArray1D | CenterDataArray_CoordinateBased (DataArray1D dataArray) |
| Method for centering a 1D data array. | |
| static DataArray2D | CenterDataArray_CoordinateBased (DataArray2D dataArray) |
| Method for centering a 2D data array. | |
| static void | ChangeInterpolationMethodEquidistant (ref DataArrayBase dataArrayBase, InterpolationMethod interpolationMethod) |
| Method to change the interpolation method of a data array. | |
| static bool | CheckForIdenticalCoordinateParametersOfTwoDataArrays (DataArrayBase da1, DataArrayBase da2, bool checkNonSamplingParameters, out List< string > warnings, out List<(string propName, string prop_1, string prop_2, bool samplingRelated)> differences, bool checkWithTolerance) |
| Method that compares the coordinate and interpolation parameters of two given data arrays. | |
| static bool | CheckForIdenticalCoordinateParametersOfTwoDataArrays (DataArrayBase da1, DataArrayBase da2, bool checkNonSamplingParameters, out string warnings, out List<(string propName, string prop_1, string prop_2, bool samplingRelated)> differences, bool checkWithTolerance=true) |
| Method that compares the coordinate and interpolation parameters of two given data arrays. | |
| static DataArrayBase | ClipValues (DataArrayBase dataArray, double amplitudeThreshold, int[] subsetIndices) |
| Clips the amplitude (or real part for real valued data) at a given threshold. | |
| static DataArrayBase | ConjugatePhase (DataArrayBase dataArray, int[] subsetIndices) |
| Conjugates the phase. | |
| static DataArray1D | Convolution (DataArray1D da1, DataArray1D da2, List< Tuple< int, int > > indicesOfOperandSubsets, bool addHintForCommonNonequidistantCoordinatesOfCFSs, out string warnings) |
| Does a convolution of two data arrays. | |
| static DataArray2D | Convolution (DataArray2D da1, DataArray2D da2, List< Tuple< int, int > > indicesOfOperandSubsets, bool addHintForCommonNonequidistantCoordinatesOfCFSs, out string warnings) |
| Does a convolution of two data arrays. | |
| static T | CreatePointCloudAddOn< T > (T dataArray2receivePointCloud, DataArrayGridLess dataArrayGridLessWithPointCloud, string nameOfAddon, int[] selectedSubsetIndices, out int noOfOutlyingPoints) |
| Creates a point cloud add-on from a DataArrayGridLess and adds it to a given gridless 2D data array. | |
| static T | CreatePointCloudAddOn< T > (T dataArray2receivePointCloud, Propagation.RayDistribution rayDistribution, string nameOfDistribution, int[] selectedSubsetIndices, out int noOfOutlyingPoints) |
| Creates a point cloud add-on from a RayDistribution and adds it to a given gridless 2D data array. | |
| static DataArray1D | CreateRegionAddOn (DataArray1D dataArray2receiveRegion, Numerics.Region1D.IntervalRegion region, int[] selectedSubsetIndices, out bool notCompletelyInDomain) |
| Creates a region add-on from an interval region and adds it to a given 1D data array. | |
| static DataArray2D | CreateRegionAddOn (DataArray2D dataArray2receiveRegion, Numerics.Region2D.ElementaryRegion2D region, int[] selectedSubsetIndices, out bool notCompletelyInDomain) |
| Creates a region add-on from an elementary region and adds it to a given gridded 2D data array. | |
| static DataArrayGridLess | CreateRegionAddOn (DataArrayGridLess dataArray2receiveRegion, Numerics.Region2D.ElementaryRegion2D region, int[] selectedSubsetIndices, out bool notCompletelyInDomain) |
| Creates a region add-on from an elementary region and adds it to a given gridless 2D data array. | |
| static DataArrayBase | DeletePhaseArtifacts (DataArrayBase dataArrayBase, double artifactsThreshold, bool cloneDataArray, int[] subsetIndices) |
| Delete numerical phase artifacts, i.e. set all amplitude below the given threshold 𝑡 to zero, and set imaginary parts less than 𝑡 times the real part also to zero. | |
| static DataArrayBase | DiscreteOversampling (DataArrayBase dataArray, int factor) |
| Method for oversampling an equidistant data array in way that new sampling points are set to zero. | |
| static DataArrayBase | DivideByConstant_Complex (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Divide certain subsets by a constant. The operation will be a complex division. | |
| static DataArrayBase | DivideByConstant_Separately (DataArrayBase dataArray, double realPartOrAmplitude, double imaginaryPartOrPhase, bool amplitudePhaseRepresentation, int[] subsetIndices) |
| Divide certain subsets by a constant. The operation will consist of two independent real valued operations for the complex parts respectively. | |
| static DataArrayBase | DoFieldQuantityOperationOnDataArray (DataArrayBase dataArrayBase, ComplexPart operation) |
| Method that does a field quantity operation on a data array. | |
| static DataArrayBase | EquidistantResamplingOfDataArray (DataArrayBase dataArrayBase, Vector samplingPoints, VectorD samplingDistance, InterpolationMethod interpolationMethod, bool keepInterpolationMethodsUnchanged, bool keepFirstCoordinateOfExtent) |
| Method to resample a data array. | |
| static ComplexField | ExtractEllipticalDataFromNonequidistantDataArray (DataArray2D da, EllipticRegion ellipticRegion, Complex outsideValueForEllipse, int subsetIndex, out(long, long) offset, RectangleOfPixels pixelBox=null) |
| Extracts that part of a subset which is covered by a given ellipse. The result will contain only as much points as are covered by the ellipse's bounding box. Point inside the box but outside the ellipse will be set to NaN. | |
| static DataArray1D | ExtractEquidistant1DDataArrayFrom2DDataArray (DataArray2D dataArray2D, VectorD startPoint, VectorD endPoint, bool enforceSteppedInterpolation, int noOfPointsToExtract, double newStartCoordinate, string commentOfCoordinates, MeasuredQuantity quantityOfCoordinate, bool enforceNonNegativeValues, out double[] maximumAmplitudes) |
| Method for extracting an equidistantly sampled 1D data array from any 2D data array. This will be done along a line which has to be specified. | |
| static DataArray1D | ExtractRangeSelection (DataArray1D inputDataArray, RectangleOfPixels rangeMarker, double rangeEndPoint) |
| Extracts the given range of a one-dimensional data array. | |
| static DataArray2D | ExtractRectangularOrEllipticalSelection (DataArray2D inputDataArray, RectangleOfPixels rectangleMarker, bool elliptical, Complex outsideValueForEllipse, VectorD? rectEndPoint=null) |
| Extracts the selected rectangular region of a two-dimensional data array. | |
| static DataArray1D | ExtractSubsetDataAtOnePoint (DataArray1D dataArray1D, double extractionCoordinate, bool enforceSteppedInterpolation, string newCommentOfData, double newStartCoordinate, double newSamplingDistance, string commentOfNewCoordinate, MeasuredQuantity physicalPropertyOfNewCoordinate, out PhysicalValueComplex singleValueForSingleSubset) |
| Extracts the subset data at one point. | |
| static DataArray1D | ExtractSubsetDataAtOnePoint (DataArray2D dataArray2D, VectorD extractionCoordinates, bool enforceSteppedInterpolation, string newCommentOfData, double newStartCoordinate, double newSamplingDistance, string commentOfNewCoordinate, MeasuredQuantity physicalPropertyOfNewCoordinate, out PhysicalValueComplex singleValueForSingleSubset) |
| Extracts the subset data at one point. | |
| static ChromaticFieldsSetBase | ExtractSubsetsFromDataArray (ChromaticFieldsSetBase cfsBase, int[] indicesToBeKept) |
| Method that extracts subsets from a data array. | |
| static DataArrayBase | ExtractSubsetsFromDataArray (DataArrayBase dataArrayBase, int[] indicesToBeKept) |
| Method that extracts subsets from a data array. | |
| static DataArrayBase | FillSelection (DataArrayBase dataArray, Complex fillValue, RectangleOfPixels regionMarker, bool elliptical, bool useInverseSelection, int[] subsetIndices) |
| Fills the selected region of the data array with the specified value. | |
| static DataArrayBase | FourierTransformationOfDataArray (DataArrayBase dataArray, bool useNumericalFT, bool useInverseFT) |
| Applies a FFT to a data array. | |
| static DataArrayBase | GeneralUnaryPointManipulation (DataArrayBase inputDataArray, Func< List< PhysicalValueComplex >, List< PhysicalValueBase > > manipulation, CancellationToken? cancellationToken=null) |
| A general point-wise manipulation for data arrays. For each data point one or more physical values are calculated from the values of the input data array at this point (one per subset). Whether the resulting data array is complex-valued is determined by whether PhysicalValue or PhysicalValueComplex are calculated from the results of the actual manipulation for the first data point. Amount, measured quantities and comments of the subsets are also determined from the results for the first data point. | |
| static void | GetDifferentCoordinateParametersOfTwoDataArrays (DataArray1D dataArray_1, DataArray1D dataArray_2, bool checkWithTolerance, out List<(string propName, string prop_1, string prop_2, bool samplingRelated)> differences) |
| Gets all data array differences related to the coordinates. | |
| static void | GetDifferentCoordinateParametersOfTwoDataArrays (DataArray2D dataArray_1, DataArray2D dataArray_2, bool checkWithTolerance, out List<(string propName, string prop_1, string prop_2, bool samplingRelated)> differences_X, out List<(string propName, string prop_1, string prop_2, bool samplingRelated)> differences_Y) |
| Gets all data array differences related to the coordinates. | |
| static void | GetDifferentCoordinateParametersOfTwoDataArrays (DataArrayGridLess dataArray_1, DataArrayGridLess dataArray_2, bool checkWithTolerance, out List<(string propName, string prop_1, string prop_2, bool samplingRelated)> differences) |
| Gets all data array differences related to the coordinates. | |
| static DataArrayBase | GetTemporalSamplingOfRealPart (DataArrayBase numericalDataArray, int numberOfFrames, bool treatAsElectricField) |
| Get temporal sampling of real part of first data subset over one period. The real part of the given data array is multiplied with exp(i*omega*t) [=exp(i*2PI*[t/T])]. | |
| static DataArrayBase | IntegrateDataArrayAlongWavelengths (DataArrayBase daInput, double[] wavelengths, string subsetDescription, MeasuredQuantity quantityOfIntegratedData) |
| public support function to integrate the subsets of a given data array along the subset index The coordinate for the subset index are interpreted as wavelengths here (used for photometry evaluation within detector add-ons) | |
| static DataArrayBase | IntegrateDataArrayAlongWavelengths (DataArrayBase daInput, double[] wavelengths, string subsetDescription, PhysicalProperty propertyOfIntegratedData) |
| public support function to integrate the subsets of a given data array along the subset index The coordinate for the subset index are interpreted as wavelengths here (used for photometry evaluation within detector add-ons) | |
| static DataArrayBase | LiftPositive (DataArrayBase dataArray, int[] subsetIndices) |
| Lifts the values of a data array in a way no negative values occur in the real part anymore. | |
| static DataArray1D | MirrorDataArray1D_Horizontally (DataArray1D dataArray, int[] subsetIndices) |
| Method which performs a horizontal mirror operation on a DataArray1D. | |
| static DataArray2D | MirrorDataArray2D_Horizontally (DataArray2D dataArray, int[] subsetIndices) |
| Method which performs a horizontal mirror operation on a DataArray2D. | |
| static DataArray2D | MirrorDataArray2D_Vertically (DataArray2D dataArray, int[] subsetIndices) |
| Method which performs a vertical mirror operation on a DataArray2D. | |
| static DataArrayBase | ModifyPhase (DataArrayBase dataArrayBase, PhaseModifyOperation operation, double wavelength, bool useQuantization, int numberOfLevels, double doubleParameter, bool hermitian, bool superimpose, int[] subsetIndices) |
| Static method which modifies the phase in various ways. | |
| static DataArrayBase | MultiplyConstant_Complex (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Multiply a constant with certain subsets. The operation will be a complex multiplication. | |
| static DataArrayBase | MultiplyConstant_Separately (DataArrayBase dataArray, double realPartOrAmplitude, double imaginaryPartOrPhase, bool amplitudePhaseRepresentation, int[] subsetIndices) |
| Multiply a constant with certain subsets. The operation will consist of two independent real valued operations for the complex parts respectively. | |
| static DataArrayBase | Normalize (DataArrayBase dataArray, RectangleOfPixels regionMarker=null, bool elliptical=false, int[] subsetIndices) |
| Normalizes a data array, i.e. brings the amplitude into the range 0 ... +1 and the real part into the range -1 ... +1. | |
| static DataArrayBase | PeriodicReplicationOfDataArray (DataArrayBase dataArrayBase, VectorD replicationFactors, bool keepOriginalInCenter) |
| Method for periodic replication of data arrays. | |
| static DataArrayBase | Quantize (DataArrayBase dataArray, QuantizationType quantizationType, int noOfAmplitudeLevels, int noOfPhaseLevels, double softQuantizationFactor) |
| Does a quantization of all subsets of a data array. | |
| static DataArrayBase | RaiseToPowerOfConstant_Complex (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Raise to the power of a constant with certain subsets. The operation will be a complex exponentiation. | |
| static DataArrayBase | RaiseToPowerOfConstant_Separately (DataArrayBase dataArray, double realPartOrAmplitude, double imaginaryPartOrPhase, bool amplitudePhaseRepresentation, int[] subsetIndices) |
| Raise to the power of a constant with certain subsets. The operation will consist of two independent real valued operations for the complex parts respectively. | |
| static DataArray2D | RemovePhaseDislocationsInsideSelection (DataArray2D dataArray, RectangleOfPixels regionMarker, bool elliptical, int[] subsetIndices) |
| Static function to remove all phase dislocations within a 2D selection. | |
| static DataArray2D | RemoveRedundantData (DataArray2D inputDataArray) |
| Removes redundant data in a two-dimensional non-equidistant data array with Constant Interval interpolation and one subset. First all columns are scanned whether two consecutive columns have the same data. Then the same is done for all rows. | |
| static ChromaticFieldsSetBase | RemoveSubsetsFromDataArray (ChromaticFieldsSetBase cfsBase, int[] removeIndices) |
| Method that removes subsets from a data array. | |
| static DataArrayBase | RemoveSubsetsFromDataArray (DataArrayBase dataArrayBase, int[] removeIndices) |
| Method that removes subsets from a data array. | |
| static DataArrayBase | SavitzkyGolayFilter (DataArrayBase dataArray, int windowSize, int order) |
| Applies the Savitzky-Golay-Filter on the given data array. This filter is a special low-pass filter, well adapted for data smoothing. | |
| static DataArrayBase | ScaleToValueRange (DataArrayBase dataArray, double minimum, double maximum, bool cloneDataArray, int[] subsetIndices) |
| Normalizes a data array, i.e. brings the amplitude into the range 0 ... +1 and the real part into the range -1 ... +1. | |
| static DataArrayBase | SetToConstant (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Set certain subsets to a constant. | |
| static DataArrayBase | SumOfAllSubsets (DataArrayBase dataArrayBase, bool complexAddition, ComplexPart partToSumInComplexCase) |
| Method which allows a complex-valued or real-valued summation of all subsets of a data array. | |
| static DataArrayBase | SumOfAllSubsets (DataArrayBase dataArrayBase, bool complexAddition, FieldQuantity fieldQuantityToSum) |
| Method which allows a complex-valued or real-valued summation of all subsets of a data array. | |
| static ChromaticFieldsSetBase | TransformCFSFromKDomainIntoSDomain (ChromaticFieldsSetBase cfsInK, HomogeneousMedium mediumAssociatedWithCFS) |
| public support function to convert a chromatic fields set (given in k-domain) to direction space For the conversion we use the common area of the domains! | |
| static ChromaticFieldsSetBase | TransformCFSFromSToAlphaBeta (ChromaticFieldsSetBase cfsInS) |
| static support function to convert a chromatic fields set from S-domain into alpha beta domain | |
| static DataArray2D | TransposeDataArray2D (DataArray2D dataArray) |
| Method which transposes a DataArray2D, which swaps all x and y properties. | |
| static DataArrayGridLess | TransposeDataArray2D (DataArrayGridLess dataArray) |
| Method which transposes a DataArrayGridLess, which swaps all x and y properties. | |
| static DataArrayBase | UnifiedMergingOfDataArrays (DataArrayBase[] dataArrays, bool cloneArrays) |
| Merges the given data array into one. If all data arrays have the same sampling the subsets are just appended. Else they are interpolated to the common sampling, which can be equidistant or non-equidistant. | |
| static DataArrayBase | UnwrapPhase (DataArrayBase dataArray, int[] subsetIndices) |
| Unwraps the phase, i.e. removes the 2 \(\pi\) jumps. | |
Static Public Attributes | |
| static long | newNoOfSamplingPoints |
| Method for determining the parameters needed for centering a 1D DA. | |
| static bool | xCentered |
| Method for checking whether the coordinates are centered (as needed for FFT) or not. | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Support class containing the manipulations for numerical data arrays.
|
static |
Add a constant to certain subsets. The operation will be a complex addition.
| dataArray | The data array to manipulate. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| constant | The complex constant to be used for the operation. |
|
static |
Add a constant to certain subsets. The operation will consist of two independent real valued operations for the complex parts respectively.
| dataArray | The data array to manipulate. |
| realPartOrAmplitude | The value added to the real part or the amplitude. |
| imaginaryPartOrPhase | The value added to the imaginary part or the phase. |
| amplitudePhaseRepresentation | If set to true amplitude and phase are given. Otherwise real and imaginary part are given. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method that appends the subsets of one data array to another. The data arrays have to have the same number of sampling points (for 2D: in each direction).
| targetDataArrayBase | Data array to append the subsets to |
| sourceDataArrayBase | Data array to get the subsets from. |
| indicesToAppend | The indices of the subsets to append. |
| warnings | Out parameter containing possible warnings. |
| System.ArgumentException | The data arrays have to be of the same type. or No valid index array given. or Method works for DataArray1D and DataArray2D only. |
|
static |
Method that appends subsets from a source data array to another one (the target data array). The source will be interpolated to the coordinates of the target.
| targetDataArray1D | The data array new subsets will be appended to. |
| sourceDataArray1D | The data array the subsets to be appended are get from. |
| indicesToAppend | The subset indices of the subsets from the source to be appended. |
| warnings | Warning which occurred if some parameters are not fitting. |
| System.ArgumentException | No valid index array given. |
| System.IndexOutOfRangeException | Invalid subset index found. |
|
static |
Method that appends subsets from a source data array to another one (the target data array). The source will be interpolated to the coordinates of the target.
| targetDataArray2D | The data array new subsets will be appended to. |
| sourceDataArray2D | The data array the subsets to be appended are get from. |
| indicesToAppend | The subset indices of the subsets from the source to be appended. |
| warnings | Warning which occurred if some parameters are not fitting. |
| System.ArgumentException | No valid index array given. |
| System.IndexOutOfRangeException | Invalid subset index found. |
|
static |
Method that appends subsets from a source data array to another one (the target data array). The result will have merged coordinates.
| targetDataArray1D | The data array new subsets will be appended to. |
| sourceDataArray1D | The data array the subsets to be appended are get from. |
| indicesToAppend | The subset indices of the subsets from the source to be appended. |
| warnings | Warning which occurred if some parameters are not fitting. |
| System.IndexOutOfRangeException | Invalid subset index found. |
|
static |
Method that appends subsets from a source data array to another one (the target data array). The result will have merged coordinates.
| targetDataArray2D | The data array new subsets will be appended to. |
| sourceDataArray2D | The data array the subsets to be appended are get from. |
| indicesToAppend | The subset indices of the subsets from the source to be appended. If this array is null or empty, all subsets of the source array will be appended. |
| warnings | Warning which occurred if some parameters are not fitting. |
| System.IndexOutOfRangeException | Invalid subset index found. |
|
static |
Array-array-operation of two data arrays. Does not work for convolution! For convolution of two data arrays please use DataArrayManipulations.Convolution(...).
| operationType | Type of operation to be done. |
| da1 | First operand. |
| da2 | Second operand. |
| indicesOfOperandSubsets | List of those index pairs which correspond to the subsets that have to be used for the subset operations. |
| warnings | Warnings in case the coordinate parameters don't match . |
| addHintForCommonNonequidistantCoordinatesOfCFSs | Shall the radio button for 'Calculate Common Coordinates' in FormSelectionOfSubsetMergeAlgorithm warn that CFS may turn into DA? |
| System.ArgumentException | The data arrays have to have identical coordinate dimensionalities. or operationType not supported (e.g. convolution). or Operation supports 1D and gridded 2D data arrays only. |
| System.IndexOutOfRangeException | Invalid subset index found. |
|
static |
support method to calculate the integral under a 1D data array by trapezoid rule
| daToIntegrate | the data array for which the integral shall be calculated. |
| subsetIndex | optional parameter for definition of the subset that shall be evaluated |
|
static |
public support method to calculate the sum of all data array per wavelength (the wavelength information is provided by the input variable "listAssociatedWavelengths")
| inputDataArrays | the list of data arrays that shall be summed up |
| listAssociatedWavelengths | list of associated wavelengths (number of entries should be the same as number of input data arrays) |
| prefixForCommentsOfSubsets | prefix that shall be used for description of subsets per wavelength. Must end with a space. |
| interpolationMethodToUseForAllDataArrays | in case "useInterpolationMethodOfDataArrayForInterpolation" is false => we use this interpolation method for resampling |
| oversamplingFactor | the user can define an additional oversampling factor, which is used for resampling of data |
|
static |
Method for centering a 1D data array.
| dataArray | Data array to be centered. |
|
static |
Method for centering a 2D data array.
| dataArray | Data array to be centered. |
|
static |
Method to change the interpolation method of a data array.
| dataArrayBase | Reference to the data array whose interpolation method shall be changed. |
| interpolationMethod | Interpolation method that shall be used for resampling in both directions |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method that compares the coordinate and interpolation parameters of two given data arrays.
| da1 | First data array to be compared with second. |
| da2 | Second data array to be compared with first. |
| checkNonSamplingParameters | If TRUE, the return value will be 'false' even if only those properties which are not directly related to sampling (e.g. interpolation, physical meaning) are not equal. Otherwise, all sampling related parameters being equal will be sufficient for the return value to be 'true'. |
| warnings | List of warnings that result from differing parameters. null if there are no warnings. |
| differences | Out parameter describing the found differences in detail. |
| checkWithTolerance | If this optional parameter is set to false the coordinate parameters must match exactly without even an irrelevant difference. |
| System.ArgumentException | The data arrays have to be of the same type. |
| System.NotImplementedException | Method does not work for this type of data array. |
|
static |
Method that compares the coordinate and interpolation parameters of two given data arrays.
| da1 | First data array to be compared with second. |
| da2 | Second data array to be compared with first. |
| checkNonSamplingParameters | If TRUE, the return value will be 'false' even if only those properties which are not directly related to sampling (e.g. interpolation, physical meaning) are not equal. Otherwise, all sampling related parameters being equal will be sufficient for the return value to be 'true'. |
| warnings | String of warnings that result from differing parameters. An empty string if there are no warnings. |
| differences | Out parameter describing the found differences in detail. |
| checkWithTolerance | If this optional parameter is set to false the coordinate parameters must match exactly without even an irrelevant difference. |
| System.ArgumentException | The data arrays have to be of the same type. |
| System.NotImplementedException | Method does not work for this type of data array. |
|
static |
Clips the amplitude (or real part for real valued data) at a given threshold.
| dataArray | The data array which shall be clipped. |
| amplitudeThreshold | The amplitude / real part threshold to clip at. |
| subsetIndices | One or more subset indices which shall be manipulated. If none is specified, then all subsets are manipulated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Conjugates the phase.
| dataArray | The data array whose phase shall be conjugated. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Does a convolution of two data arrays.
| da1 | First operand. |
| da2 | Second operand. |
| indicesOfOperandSubsets | List of those index pairs which correspond to the subsets that have to be used for the subset operations. |
| warnings | Warnings in case the coordinate parameters don't match. |
| addHintForCommonNonequidistantCoordinatesOfCFSs | Shall the radiobutton for 'Calculate Common Coordinates' in FormSelectionOfSubsetMergeAlgorithm warn that CFS may turn into DA? |
| System.ArgumentException | Operands have to be equidistant. |
|
static |
Does a convolution of two data arrays.
| da1 | First operand. |
| da2 | Second operand. |
| indicesOfOperandSubsets | List of those index pairs which correspond to the subsets that have to be used for the subset operations. |
| warnings | Warnings in case the coordinate parameters don't match. |
| System.ArgumentException | Operands have to be completely equidistantly sampled. |
|
static |
Creates a point cloud add-on from a DataArrayGridLess and adds it to a given gridless 2D data array.
| T | A DataArrayBase or a derived type. |
| dataArray2receivePointCloud | Data array to add the point cloud add-on. |
| dataArrayGridLessWithPointCloud | DataArrayGridLess to create the point cloud from. |
| nameOfAddon | The name of the new add-on. |
| selectedSubsetIndices | Array of subset indices to apply the point cloud on. |
| noOfOutlyingPoints | The number of that point cloud points which lie outside the domain of the gridded 2D DA. |
| System.ArgumentException | Given Data Array must be two-dimensional. |
| T | : | DataArrayBase |
|
static |
Creates a point cloud add-on from a RayDistribution and adds it to a given gridless 2D data array.
| T | A DataArrayBase or a derived type. |
| dataArray2receivePointCloud | Data array to add the point cloud add-on. |
| rayDistribution | Ray distribution to create the point cloud from. |
| nameOfDistribution | The distribution's name, to be used in the add-ons. |
| selectedSubsetIndices | Array of subset indices to apply the point cloud on. |
| noOfOutlyingPoints | The number of that point cloud points which lie outside the domain of the gridded 2D DA. |
| System.ArgumentException | Given Data Array must be two-dimensional. |
| T | : | DataArrayBase |
|
static |
Creates a region add-on from an interval region and adds it to a given 1D data array.
| dataArray2receiveRegion | Data array to add the region add-on. |
| region | Region to use as add-on. |
| selectedSubsetIndices | Array of subset indices to apply the point cloud on. |
| notCompletelyInDomain | If true, the given region may not lie completely inside the data arrays domain. |
|
static |
Creates a region add-on from an elementary region and adds it to a given gridded 2D data array.
| dataArray2receiveRegion | Data array to add the region add-on. |
| region | Region to use as add-on. |
| selectedSubsetIndices | Array of subset indices to apply the point cloud on. |
| notCompletelyInDomain | If true, the given region may not lie completely inside the data arrays domain. |
|
static |
Creates a region add-on from an elementary region and adds it to a given gridless 2D data array.
| dataArray2receiveRegion | Data array to add the region add-on. |
| region | Region to use as add-on. |
| selectedSubsetIndices | Array of subset indices to apply the point cloud on. |
| notCompletelyInDomain | If true, the given region may not lie completely inside the data arrays domain. |
|
static |
Delete numerical phase artifacts, i.e. set all amplitude below the given threshold 𝑡 to zero, and set imaginary parts less than 𝑡 times the real part also to zero.
| dataArrayBase | The data array where phase artifacts shall be deleted. |
| artifactsThreshold | The artifacts threshold 𝑡. |
| cloneDataArray | If set to true the data array is cloned. Otherwise the original data array is manipulated which is faster. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| ArgumentException | Operation only supported for complex-valued data. |
| NotImplementedException | Method does not work for this type of data array. |
|
static |
Method for oversampling an equidistant data array in way that new sampling points are set to zero.
| dataArray | Data array to be oversampled. |
| factor | Oversampling factor. |
| System.ArgumentOutOfRangeException | The oversampling factor has to be greater or equal 1. |
| System.ArgumentException | The method works for equidistant arrays only. or Method works for DataArray1D and DataArray2D only. |
|
static |
Divide certain subsets by a constant. The operation will be a complex division.
| dataArray | The data array to manipulate. |
| constant | The complex constant to be used for the operation. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Divide certain subsets by a constant. The operation will consist of two independent real valued operations for the complex parts respectively.
| dataArray | The data array to manipulate. |
| realPartOrAmplitude | The value by which the real part or the amplitude is divided. |
| imaginaryPartOrPhase | The value by which the imaginary part or the phase is divided. |
| amplitudePhaseRepresentation | If set to true amplitude and phase are given. Otherwise real and imaginary part are given. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method that does a field quantity operation on a data array.
| dataArrayBase | Data array to operate on |
| operation | Field quantity operation to do. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method to resample a data array.
| dataArrayBase | Data array to be resampled. |
| samplingPoints | New number of sampling points. |
| samplingDistance | New sampling distances. |
| interpolationMethod | Interpolation method that shall be used for resampling in both directions |
| keepInterpolationMethodsUnchanged | If TRUE, the interpolation methods for the data array are kept unchanged, no matter what methods have been used for resampling. If FALSE, the methods for resampling are set as the data array's new interpolation methods. |
| keepFirstCoordinateOfExtent | In case of Nearest Neighbor Interpolation, there is a difference between Array Size and Coordinate Extent. If this method is used for resmapling such data array in a way which preserves the coordinate extent (by providing a correctly calculated new samplingDistance!!!), we have to adapt the first coordinate as well. This will be done if this flag is set to true. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Extracts that part of a subset which is covered by a given ellipse. The result will contain only as much points as are covered by the ellipse's bounding box. Point inside the box but outside the ellipse will be set to NaN.
| da | Data array to extract from. It should be non-equidistant in one dimension at least. (Otherwise this method is not needed.) |
| ellipticRegion | Ellipse to extract. |
| outsideValueForEllipse | If an ellipse is to be extracted, this value is used for the pixels which are outside the ellipse but inside the ellipse's bounding box. |
| subsetIndex | Subset to extract. |
| offset | The pixel offset of the extracted data's lower left corner to the original's (0,0) pixel. |
| pixelBox | Rectangle in pixel coordinates specifying the extension of the resulting field. If this optional parameter is not set, the axis aligned bounding box of the ellipse is used to this end. |
|
static |
Method for extracting an equidistantly sampled 1D data array from any 2D data array. This will be done along a line which has to be specified.
| dataArray2D | DataArray2D to extract the 1D data from. |
| startPoint | Start coordinates of extraction. |
| endPoint | End coordinates of extraction. |
| enforceSteppedInterpolation | If true, the extraction will be done from stepped data instead of using the data array's own interpolation method. |
| noOfPointsToExtract | The number of points to be extracted. |
| newStartCoordinate | Coordinate which will be set as new start coordinate in the resulting 1D data array. |
| commentOfCoordinates | The description for the new coordinate axis. |
| quantityOfCoordinate | The measured quantity to be used for the result. |
| maximumAmplitudes | The maximum amplitude values of all subsets in the extracted 1D array. |
| enforceNonNegativeValues | If true, all values with negative real part will be set to zero. Needed for extracting 1D CFSs. |
| ArgumentOutOfRangeException | Less than two data points to extract. |
| ArgumentException | Start point and end point of extraction must not be identical. |
| System.ArgumentException | Start point and end point of extraction must not be identical. |
|
static |
Extracts the given range of a one-dimensional data array.
| inputDataArray | The data array from which the selected range shall be extracted. |
| rangeMarker | The range marker indicating the region to extract. |
| rangeEndPoint | The physical coordinate of the range's end point. |
| System.ArgumentException | The range selection contains only one sampling point. From this selection a one-dimensional data array cannot be extracted. |
|
static |
Extracts the selected rectangular region of a two-dimensional data array.
| inputDataArray | The data array from which the selected rectangle marker shall be extracted. |
| rectangleMarker | The rectangle marker indicating the selected region of the field. |
| elliptical | Extract an elliptical instead of an rectangular selection? |
| rectEndPoint | The physical coordinates of the rectangle's upper right point. Needed only in some cases of non-equidistant arrays. |
| outsideValueForEllipse | If an ellipse is to be extracted, this value is used for the pixels which are outside the ellipse but inside the ellipse's bounding box. |
| System.ArgumentException | The selection contains only one sampling point in x- or y-direction. From this selection a two-dimensional data array cannot be extracted. |
|
static |
Extracts the subset data at one point.
| dataArray1D | The data array from which the data is extracted. |
| extractionCoordinate | The extraction coordinate. |
| enforceSteppedInterpolation | If true, a stepped interpolation (i.e. Nearest Neighbor or Constant Interval) will be used, no matter what the DataArrays own interpolation method is. |
| newCommentOfData | The new comment of data. |
| newStartCoordinate | The new start coordinate. |
| newSamplingDistance | The new sampling distance. |
| commentOfNewCoordinate | The new comment of the coordinate axis. |
| physicalPropertyOfNewCoordinate | The new physical property of the coordinate axis. |
| singleValueForSingleSubset | Out parameter returning the single value in case the given data array has only one subset. |
| System.ArgumentException | The given coordinate lies outside the coordinate range of the Numerical Data Array. or The subsets have different physical properties. |
|
static |
Extracts the subset data at one point.
| dataArray2D | The data array from which the data is extracted. |
| extractionCoordinates | The extraction coordinates. |
| enforceSteppedInterpolation | If true, a stepped interpolation (i.e. Nearest Neighbor or Constant Interval) will be used, no matter what the DataArrays own interpolation method is. |
| newCommentOfData | The new comment of data. |
| newStartCoordinate | The new start coordinate. |
| newSamplingDistance | The new sampling distance. |
| commentOfNewCoordinate | The new comment of the coordinate axis. |
| physicalPropertyOfNewCoordinate | The new physical property of the coordinate axis. |
| singleValueForSingleSubset | Out parameter returning the single value in case the given data array has only one subset. |
| System.ArgumentException | The given coordinate lies outside the coordinate range of the Numerical Data Array. or The subsets have different physical properties. |
|
static |
Method that extracts subsets from a data array.
| cfsBase | Chromatic Fields Set to extract subsets from. |
| indicesToBeKept | The indices of the subsets to extract. |
| System.ArgumentException | Method works for DataArray1D, DataArray2D, and DataArrayGridLess only. |
|
static |
Method that extracts subsets from a data array.
| dataArrayBase | Data array to extract subsets from. |
| indicesToBeKept | The indices of the subsets to extract. |
| System.ArgumentException | Method works for DataArray1D, DataArray2D, and DataArrayGridLess only. |
|
static |
Fills the selected region of the data array with the specified value.
| dataArray | The data array to manipulate. |
| fillValue | The value with which the selected region shall be filled. |
| regionMarker | The region of the field that shall be filled. |
| elliptical | Is the selection elliptically? |
| useInverseSelection | If set to true the inverse of the selection is filled. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Applies a FFT to a data array.
| dataArray | Data array to be transformed. It has to be equidistant. The coordinates have to have one of the properties 'length', 'wave number', 'time', 'temporal frequency' or 'no unit'. The coordinates has to be centered around zero. |
| useNumericalFT | If TRUE, a numerical FFT instead of a physical one is done. |
| useInverseFT | If TRUE, an inverse FFT is done. |
| System.ArgumentException | Operation is allowed for equidistant arrays only. or The coordinate 0 has to be in the center of the array. or Operation is allowed for equidistant arrays only. |
| System.Exception | Type of data array is not supported. |
|
static |
A general point-wise manipulation for data arrays. For each data point one or more physical values are calculated from the values of the input data array at this point (one per subset). Whether the resulting data array is complex-valued is determined by whether PhysicalValue or PhysicalValueComplex are calculated from the results of the actual manipulation for the first data point. Amount, measured quantities and comments of the subsets are also determined from the results for the first data point.
| inputDataArray | The input data array. |
| manipulation | The actual manipulation done on each data point. |
| cancellationToken | Token for cooperative task cancellation. Only has an effect for 2D diagrams. |
| NotImplementedException | Implementation for given data array type missing. |
|
static |
Gets all data array differences related to the coordinates.
| dataArray_1 | First data array for comparison. |
| dataArray_2 | Second data array for comparison. |
| checkWithTolerance | Do the comparison with some tolerance? |
| differences | List of all differences related to the coordinates. |
|
static |
Gets all data array differences related to the coordinates.
| dataArray_1 | First data array for comparison. |
| dataArray_2 | Second data array for comparison. |
| checkWithTolerance | Do the comparison with some tolerance? |
| differences_X | List of all differences related to the x-coordinates. |
| differences_Y | List of all differences related to the y-coordinates. |
|
static |
Gets all data array differences related to the coordinates.
| dataArray_1 | First data array for comparison. |
| dataArray_2 | Second data array for comparison. |
| checkWithTolerance | Do the comparison with some tolerance? |
| differences | List of all differences. |
|
static |
Get temporal sampling of real part of first data subset over one period. The real part of the given data array is multiplied with exp(i*omega*t) [=exp(i*2PI*[t/T])].
| numericalDataArray | Data Array to be temporally sampled. |
| numberOfFrames | Temporal sampling count n. |
| treatAsElectricField | If true, the data re treated as being an electric field, as well as the result. Note that there is a scaling factor of 2 in case of an electric field. See the manual for more information. |
|
static |
public support function to integrate the subsets of a given data array along the subset index The coordinate for the subset index are interpreted as wavelengths here (used for photometry evaluation within detector add-ons)
| daInput | input data array |
| wavelengths | the list of wavelengths associated to the subsets of the data array |
| subsetDescription | comment for subset of output data array |
| quantityOfIntegratedData | the measured quantity of the integrated data |
|
static |
public support function to integrate the subsets of a given data array along the subset index The coordinate for the subset index are interpreted as wavelengths here (used for photometry evaluation within detector add-ons)
| daInput | input data array |
| wavelengths | the list of wavelengths associated to the subsets of the data array |
| subsetDescription | comment for subset of output data array |
| propertyOfIntegratedData | the physical property of the integrated data |
|
static |
Lifts the values of a data array in a way no negative values occur in the real part anymore.
| dataArray | The data array which shall be lifted. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method which performs a horizontal mirror operation on a DataArray1D.
| dataArray | The data array to be manipulated. |
| subsetIndices | One or more subset indices which shall be manipulated. If none is specified, then all subsets are manipulated. |
|
static |
Method which performs a horizontal mirror operation on a DataArray2D.
| dataArray | The data array to be manipulated. |
| subsetIndices | One or more subset indices which shall be manipulated. If none is specified, then all subsets are manipulated. |
|
static |
Method which performs a vertical mirror operation on a DataArray2D.
| dataArray | The data array to be manipulated. |
| subsetIndices | One or more subset indices which shall be manipulated. If none is specified, then all subsets are manipulated. |
|
static |
Static method which modifies the phase in various ways.
| dataArrayBase | The data array document to manipulate. |
| operation | Operation to be applied to the phase. |
| wavelength | Wavelength to be used in case of lens or spherical phase. |
| useQuantization | if set to true the random phase is quantized.. |
| numberOfLevels | The number of quantization levels. Only has an effect if the random phase is quantized. |
| doubleParameter | Double parameter whose meaning depends on the chosen operation. |
| hermitian | Hermitian option (for Random) |
| superimpose | If true, the old phase will be superimposed with the new one, otherwise it will be replaced. |
| subsetIndices | One or more subset indices which shall be manipulated. If none is specified, then all subsets are manipulated. |
| ArgumentException | Operation is defined for equidistant data only. or Method works for DataArray1D and DataArray2D only. |
| Exception | Case not found. |
|
static |
Multiply a constant with certain subsets. The operation will be a complex multiplication.
| dataArray | The data array to manipulate. |
| constant | The complex constant to be used for the operation. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Multiply a constant with certain subsets. The operation will consist of two independent real valued operations for the complex parts respectively.
| dataArray | The data array to manipulate. |
| realPartOrAmplitude | The value multiplied to the real part or the amplitude. |
| imaginaryPartOrPhase | The value multiplied to the imaginary part or the phase. |
| amplitudePhaseRepresentation | If set to true amplitude and phase are given. Otherwise real and imaginary part are given. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Normalizes a data array, i.e. brings the amplitude into the range 0 ... +1 and the real part into the range -1 ... +1.
| dataArray | The data array which shall be normalized. |
| regionMarker | If this parameter is set only the specified region is taken into account for the calculation of the maximum being the normalization reference. Can be omitted or set to null if the whole data shall be evaluated. |
| elliptical | Shall the normalization reference be an elliptical selection? (Only effective if regionMarker given.) |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method for periodic replication of data arrays.
| dataArrayBase | Data array to be replicated periodically. |
| replicationFactors | Replication factor in x and y. The y-component will be ignored in case of DataArray1D. |
| keepOriginalInCenter | If true (and if the considered dimension is equidistant), the original array will be kept in the center. |
| System.ArgumentException | Non-equidistant data arrays with constant interval interpolation may not be replicated if one of the last intervals is infinite. or Method works for DataArray1D and DataArray2D only. |
|
static |
Does a quantization of all subsets of a data array.
| dataArray | Data array to be quantized. |
| quantizationType | Type of quantization |
| noOfAmplitudeLevels | Number of amplitude levels after quantization. |
| noOfPhaseLevels | Number of phase levels after quantization. |
| softQuantizationFactor | The quantization factor for soft quantization. If a different type is desired, this value will be ignored. |
| System.Exception | Type of data array is not supported. |
|
static |
Raise to the power of a constant with certain subsets. The operation will be a complex exponentiation.
| dataArray | The data array to manipulate. |
| constant | The complex constant to be used for the operation. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Raise to the power of a constant with certain subsets. The operation will consist of two independent real valued operations for the complex parts respectively.
| dataArray | The data array to manipulate. |
| realPartOrAmplitude | The exponent applied on the real part or the amplitude. |
| imaginaryPartOrPhase | The exponent applied on the imaginary part or the phase. |
| amplitudePhaseRepresentation | If set to true amplitude and phase are given. Otherwise real and imaginary part are given. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Static function to remove all phase dislocations within a 2D selection.
| dataArray | The data array in whose 2D selection the phase dislocations shall be removed. |
| regionMarker | If this optional parameter is set only the specified region is taken into account for the calculation of the maximum being the normalization reference. |
| elliptical | Is regionMarker to be interpreted as bounding box of an elliptical selection? |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
|
static |
Removes redundant data in a two-dimensional non-equidistant data array with Constant Interval interpolation and one subset. First all columns are scanned whether two consecutive columns have the same data. Then the same is done for all rows.
| inputDataArray | The input data array. |
| ArgumentException | Remove redundant data only works for non-equidistant data arrays with Constant Interval interpolation and one subset. |
|
static |
Method that removes subsets from a data array.
| cfsBase | Chromatic fields set to remove subsets from. |
| removeIndices | The indices of the subsets to remove. |
|
static |
Method that removes subsets from a data array.
| dataArrayBase | Data array to remove subsets from. |
| removeIndices | The indices of the subsets to remove. |
| System.ArgumentException | Method works for DataArray1D, DataArray2D, and DataArrayGridLess only. |
|
static |
Applies the Savitzky-Golay-Filter on the given data array. This filter is a special low-pass filter, well adapted for data smoothing.
| dataArray | The data array. |
| windowSize | The window size of the filter (in pixels). |
| order | The order of the filter. The smaller the order the smoother the result. The order should be smaller than filter window size, otherwise the algorithm is not correct. |
| ArgumentException | Selected data array is not equidistantly sampled. |
|
static |
Normalizes a data array, i.e. brings the amplitude into the range 0 ... +1 and the real part into the range -1 ... +1.
| dataArray | The data array which shall be normalized. |
| minimum | The minimum data value in the resulting data array. |
| maximum | The maximum data value in the resulting data array. |
| cloneDataArray | If set to true the data array is cloned. Otherwise the original data array is manipulated which is faster. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| ArgumentException | Operation only supported for real-valued data. or Method does not work for this type of data array. |
|
static |
Set certain subsets to a constant.
| dataArray | The data array to manipulate. |
| constant | The complex constant to be used for the operation. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method which allows a complex-valued or real-valued summation of all subsets of a data array.
| dataArrayBase | Data array to sum the subsets for. |
| complexAddition | If false, the parameter partToSumInComplexCase determines which complex part is to be summed. |
| partToSumInComplexCase | Complex part to be summed. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
Method which allows a complex-valued or real-valued summation of all subsets of a data array.
| dataArrayBase | Data array to sum the subsets for. |
| complexAddition | If false, the parameter fieldQuantityToSum determines which complex part is to be summed. |
| fieldQuantityToSum | Field quantity to be summed. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
static |
public support function to convert a chromatic fields set (given in k-domain) to direction space For the conversion we use the common area of the domains!
| cfsInK | input field in k-domain |
| mediumAssociatedWithCFS | medium in which the chromatic fields set exist (necessary for conversion from k to s) |
|
static |
static support function to convert a chromatic fields set from S-domain into alpha beta domain
| cfsInS | the chromatic fields set which shall be converted |
|
static |
Method which transposes a DataArray2D, which swaps all x and y properties.
| dataArray | Data array to be transposed. |
|
static |
Method which transposes a DataArrayGridLess, which swaps all x and y properties.
| dataArray | Data array to be transposed. |
| System.ArgumentException | This manipulation works for 2D data only. |
|
static |
Merges the given data array into one. If all data arrays have the same sampling the subsets are just appended. Else they are interpolated to the common sampling, which can be equidistant or non-equidistant.
| dataArrays | The data arrays to merge. |
| cloneArrays | If set to true the arrays are cloned, i.e. the original data arrays remain unchanged. If you created the data arrays just for this method, you can increase performance by setting this parameter to false. |
| System.ArgumentException | The physical meanings of the data arrays must be all the same. |
| System.InvalidOperationException | No merging defined for gridless data arrays |
|
static |
Unwraps the phase, i.e. removes the 2 \(\pi\) jumps.
| dataArray | The data array to manipulate. |
| subsetIndices | One or more subset indices which shall be evaluated. If none is specified, then all subsets are evaluated. |
| ArgumentException | Operation works for 1D and gridded 2D data arrays only. |
|
static |
Method for determining the parameters needed for centering a 1D DA.
| firstCoord | The first coordinate. |
| lastCoord | The last coordinate. |
| samplingDist | The sampling distance. |
| noOfPoints | The number of sampling points. |
|
static |
Method for checking whether the coordinates are centered (as needed for FFT) or not.
| dataArray | Data array to check. |
| ArgumentException | Thrown if the data array is not equidistant. |