|
Programming Reference for VirtualLab Fusion
2022.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. More... | |
| 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. More... | |
| 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). More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| static DataArrayBase | AppendSubsetsFromAnotherDataArrayWithMerging (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). More... | |
| static DataArrayBase | ArrayArrayOperation (ArrayArrayOperationType operationType, DataArrayBase da1, DataArrayBase da2, List< Tuple< int, int > > indicesOfOperandSubsets, out string warnings) |
| Does an array-array-operation of two data arrays. More... | |
| static void | ChangeInterpolationMethodEquidistant (ref DataArrayBase dataArrayBase, InterpolationMethod interpolationMethod) |
| Method to change the interpolation method of a data array. More... | |
| 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 More... | |
| static DataArrayBase | ClipValues (DataArrayBase dataArray, double amplitudeThreshold, int[] subsetIndices) |
| Clips the amplitude (or real part for real valued data) at a given threshold. More... | |
| static DataArrayBase | ConjugatePhase (DataArrayBase dataArray, int[] subsetIndices) |
| Conjugates the phase. More... | |
| static DataArray1D | Convolution (DataArray1D da1, DataArray1D da2, List< Tuple< int, int > > indicesOfOperandSubsets, out string warnings) |
| Does a convolution of two data arrays. More... | |
| static DataArray2D | Convolution (DataArray2D da1, DataArray2D da2, List< Tuple< int, int > > indicesOfOperandSubsets, out string warnings) |
| Does a convolution of two data arrays. More... | |
| static DataArray2D | CreatePointCloudAddOn (DataArray2D dataArray2receivePointCloud, DataArrayGridLess dataArrayGridLessWithPointCloud, int[] selectedSubsetIndices, out int noOfOutlyingPoints) |
| Creates a point cloud add-on from a DataArrayGridLess and adds it to a given gridded 2D data array. More... | |
| static DataArray2D | CreatePointCloudAddOn (DataArray2D dataArray2receivePointCloud, Propagation.RayDistribution rayDistribution, int[] selectedSubsetIndices, out int noOfOutlyingPoints) |
| Creates a point cloud add-on from a RayDistribution and adds it to a given gridded 2D data array. More... | |
| static DataArrayGridLess | CreatePointCloudAddOn (DataArrayGridLess dataArray2receivePointCloud, DataArrayGridLess dataArrayGridLessWithPointCloud, int[] selectedSubsetIndices, out int noOfOutlyingPoints) |
| Creates a point cloud add-on from a DataArrayGridLess and adds it to a given gridless 2D data array. More... | |
| static DataArrayGridLess | CreatePointCloudAddOn (DataArrayGridLess dataArray2receivePointCloud, Propagation.RayDistribution rayDistribution, int[] selectedSubsetIndices, out int noOfOutlyingPoints) |
| Creates a point cloud add-on from a RayDistribution and adds it to a given gridless 2D data array. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| static DataArrayBase | DiscreteOversampling (DataArrayBase dataArray, int factor) |
| Method for oversampling an equidistant data array in way that new sampling points are set to zero. More... | |
| static DataArrayBase | DivideByConstant_Complex (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Divide certain subsets by a constant. The operation will be a complex division. More... | |
| 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. More... | |
| static DataArrayBase | DoFieldQuantityOperationOnDataArray (DataArrayBase dataArrayBase, ComplexPart operation) |
| Method that does a field quantity operation on a data array More... | |
| static DataArrayBase | EquidistantResamplingOfDataArray (DataArrayBase dataArrayBase, Vector samplingPoints, VectorD samplingDistance, InterpolationMethod interpolationMethod, bool keepInterpolationMethodsUnchanged) |
| Method to resample a data array. More... | |
| static DataArray1D | ExtractEquidistant1DDataArrayFrom2DDataArray (DataArray2D dataArray2D, VectorD startPoint, VectorD endPoint, bool enforceSteppedInterpolation, int noOfPointsToExtract, double newStartCoordinate, string commentOfCoordinates, PhysicalProperty physicalPropertyOfCoordinate) |
| 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. More... | |
| static DataArray1D | ExtractRangeSelection (DataArray1D inputDataArray, RectangleOfPixels rangeMarker, double rangeEndPoint) |
| Extracts the given range of a one-dimensional data array. More... | |
| static DataArray2D | ExtractRectangularSelection (DataArray2D inputDataArray, RectangleOfPixels rectangleMarker, VectorD rectEndPoint) |
| Extracts the selected rectangular region of a two-dimensional data array. More... | |
| static DataArray1D | ExtractSubsetDataAtOnePoint (DataArray1D dataArray1D, double extractionCoordinate, bool enforceSteppedInterpolation, string newCommentOfData, double newStartCoordinate, double newSamplingDistance, string commentOfNewCoordinate, PhysicalProperty physicalPropertyOfNewCoordinate, out PhysicalValueComplex singleValueForSingleSubset) |
| Extracts the subset data at one point. More... | |
| static DataArray1D | ExtractSubsetDataAtOnePoint (DataArray2D dataArray2D, VectorD extractionCoordinates, bool enforceSteppedInterpolation, string newCommentOfData, double newStartCoordinate, double newSamplingDistance, string commentOfNewCoordinate, PhysicalProperty physicalPropertyOfNewCoordinate, out PhysicalValueComplex singleValueForSingleSubset) |
| Extracts the subset data at one point. More... | |
| static ChromaticFieldsSetBase | ExtractSubsetsFromDataArray (ChromaticFieldsSetBase cfsBase, int[] indicesToBeKept) |
| Method that extracts subsets from a data array More... | |
| static DataArrayBase | ExtractSubsetsFromDataArray (DataArrayBase dataArrayBase, int[] indicesToBeKept) |
| Method that extracts subsets from a data array More... | |
| static DataArrayBase | FillSelection (DataArrayBase dataArray, Complex fillValue, RectangleOfPixels regionMarker, bool useInverseSelection, int[] subsetIndices) |
| Fills the selected region of the data array with the specified value. More... | |
| static DataArrayBase | FourierTransformationOfDataArray (DataArrayBase dataArray, bool useNumericalFT, bool useInverseFT) |
| Applies a FFT to a data array. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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])]. More... | |
| 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. More... | |
| static DataArray1D | MirrorDataArray1D_Horizontally (DataArray1D dataArray, int[] subsetIndices) |
| Method which performs a horizontal mirror operation on a DataArray1D. More... | |
| static DataArray2D | MirrorDataArray2D_Horizontally (DataArray2D dataArray, int[] subsetIndices) |
| Method which performs a horizontal mirror operation on a DataArray2D. More... | |
| static DataArray2D | MirrorDataArray2D_Vertically (DataArray2D dataArray, int[] subsetIndices) |
| Method which performs a vertical mirror operation on a DataArray2D. More... | |
| 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. More... | |
| static DataArrayBase | MultiplyConstant_Complex (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Multiply a constant with certain subsets. The operation will be a complex multiplication. More... | |
| 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. More... | |
| static DataArrayBase | Normalize (DataArrayBase dataArray, RectangleOfPixels regionMarker=null, 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. More... | |
| static DataArrayBase | PeriodicReplicationOfDataArray (DataArrayBase dataArrayBase, VectorD replicationFactors, bool keepOriginalInCenter) |
| Method for periodic replication of data arrays. More... | |
| static DataArrayBase | Quantize (DataArrayBase dataArray, QuantizationType quantizationType, int noOfAmplitudeLevels, int noOfPhaseLevels, double softQuantizationFactor) |
| Does a quantization of all subsets of a data array. More... | |
| 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. More... | |
| 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. More... | |
| static DataArray2D | RemovePhaseDislocationsInsideSelection (DataArray2D dataArray, RectangleOfPixels regionMarker, int[] subsetIndices) |
| Static function to remove all phase dislocations within the rectangular selection. More... | |
| 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. More... | |
| static ChromaticFieldsSetBase | RemoveSubsetsFromDataArray (ChromaticFieldsSetBase cfsBase, int[] removeIndices) |
| Method that removes subsets from a data array More... | |
| static DataArrayBase | RemoveSubsetsFromDataArray (DataArrayBase dataArrayBase, int[] removeIndices) |
| Method that removes subsets from a data array More... | |
| 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. More... | |
| 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. More... | |
| static DataArrayBase | SetToConstant (DataArrayBase dataArray, Complex constant, int[] subsetIndices) |
| Set certain subsets to a constant. More... | |
| 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. More... | |
| static DataArray2D | TransposeDataArray2D (DataArray2D dataArray) |
| Method which transposes a DataArray2D, which swaps all x and y properties. More... | |
| static DataArrayGridLess | TransposeDataArray2D (DataArrayGridLess dataArray) |
| Method which transposes a DataArrayGridLess, which swaps all x and y properties. More... | |
| static DataArrayBase | UnwrapPhase (DataArrayBase dataArray, int[] subsetIndices) |
| Unwraps the phase, i.e. removes the 2 \(\pi\) jumps. More... | |
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 |
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 |
Does an array-array-operation of two data arrays.
| 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. |
| System.ArgumentException | The data arrays have to have identical coordinate dimensionalities. or operationType not supported. or Operation supports 1D and gridded 2D data arrays only. |
| System.IndexOutOfRangeException | Invalid subset index found. |
|
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 | String of warnings that result from differing parameters. |
|
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. |
| 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 gridded 2D data array.
| dataArray2receivePointCloud | Data array to add the point cloud add-on. |
| dataArrayGridLessWithPointCloud | DataArrayGridLess to create the point cloud from. |
| 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. |
|
static |
Creates a point cloud add-on from a RayDistribution and adds it to a given gridded 2D data array.
| dataArray2receivePointCloud | Data array to add the point cloud add-on. |
| rayDistribution | Ray distribution to create the point cloud from. |
| 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. |
|
static |
Creates a point cloud add-on from a DataArrayGridLess and adds it to a given gridless 2D data array.
| dataArray2receivePointCloud | Data array to add the point cloud add-on. |
| dataArrayGridLessWithPointCloud | DataArrayGridLess to create the point cloud from. |
| 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. |
|
static |
Creates a point cloud add-on from a RayDistribution and adds it to a given gridless 2D data array.
| dataArray2receivePointCloud | Data array to add the point cloud add-on. |
| rayDistribution | Ray distribution to create the point cloud from. |
| 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. |
|
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 |
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. |
| System.ArgumentException | Method works for DataArray1D and DataArray2D only. |
|
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. |
| physicalPropertyOfCoordinate | The physical property to be used for the result. |
| 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. |
| rectEndPoint | The physical coordinates of the rectangle's upper right point. |
| System.ArgumentException | The rectangular 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. |
| 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 |
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 |
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. |
| 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 the rectangular selection.
| dataArray | The data array in whose rectangular 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. |
| 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. 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 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 |
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. |