ThreeDimensional Module

Types

Type Description

Padding3DMethod

Functions and values

Function or value Description

pad data borderpadding paddingMethod

Full Usage: pad data borderpadding paddingMethod

Parameters:
    data : ^a[,] - A two dimensional array
    borderpadding : int - The number of points to add to each side
    paddingMethod : Padding3DMethod - The padding method to use

Returns: float[,] A two dimensional array, containing the data of the original array padded with artificial data points on each side.
Modifiers: inline
Type parameters: ^a

Pads artificial data points to the borders of the given two dimensional array.

data : ^a[,]

A two dimensional array

borderpadding : int

The number of points to add to each side

paddingMethod : Padding3DMethod

The padding method to use

Returns: float[,]

A two dimensional array, containing the data of the original array padded with artificial data points on each side.

Example

 
  let data2D =
            let rnd = System.Random()
            Array2D.init 50 50 (fun i j -> 
            if (i,j) = (15,15) then 5.
            elif (i,j) = (35,35) then -5.
            else rnd.NextDouble())
 
  let padding = 11
       
  // padding the data points with 11 artificial random points on each side
  let paddedData2D = Padding.Discrete.ThreeDimensional.pad data2D padding Padding.Discrete.ThreeDimensional.Random