PdfSampleFunction Constructors
Overloads
| Name | Description |
|---|---|
| PdfSampleFunction() | Initilizes a new PdfSampleFunction object. |
| PdfSampleFunction(Int32[],Int32,PdfFunctionInterpolationMode,Double[],Double[],Byte[]) | Initializes new PdfSampleFunction object. |
PdfSampleFunction()
Initilizes a new PdfSampleFunction object.
PdfSampleFunction(Int32[],Int32,PdfFunctionInterpolationMode,Double[],Double[],Byte[])
Initializes new PdfSampleFunction object.
C#
public PdfSampleFunction(Int32[] size, int bitsPerSample, PdfFunctionInterpolationMode interpolationMode, Double[] encode, Double[] decode, Byte[] samples)
Parameters
size Int32[]
An array of m positive integers specifying the number of samples in each input dimension of the sample table.
bitsPerSample Int32
The number of bits used to represent each sample.
interpolationMode PdfFunctionInterpolationMode
The interpolation mode between samples.
encode Double[]
An array of 2 x m numbers specifying the linear mapping of input values into the domain of the function's sample table.
decode Double[]
An array of 2 x n numbers specifying the linear mapping of sample values into the range appropriate for the function's output values.
samples Byte[]
Sample function data.