sample_funct_1dT_sample_funct_1dSampleFunct1dSampleFunct1dsample_funct_1d (Operator)

Name

sample_funct_1dT_sample_funct_1dSampleFunct1dSampleFunct1dsample_funct_1d — Sample a function equidistantly in an interval.

Signature

sample_funct_1d( : : Function, XMin, XMax, XDist, Border : SampledFunction)

Herror T_sample_funct_1d(const Htuple Function, const Htuple XMin, const Htuple XMax, const Htuple XDist, const Htuple Border, Htuple* SampledFunction)

void SampleFunct1d(const HTuple& Function, const HTuple& XMin, const HTuple& XMax, const HTuple& XDist, const HTuple& Border, HTuple* SampledFunction)

HFunction1D HFunction1D::SampleFunct1d(const HTuple& XMin, const HTuple& XMax, const HTuple& XDist, const HString& Border) const

HFunction1D HFunction1D::SampleFunct1d(double XMin, double XMax, double XDist, const HString& Border) const

HFunction1D HFunction1D::SampleFunct1d(double XMin, double XMax, double XDist, const char* Border) const

HFunction1D HFunction1D::SampleFunct1d(double XMin, double XMax, double XDist, const wchar_t* Border) const   ( Windows only)

static void HOperatorSet.SampleFunct1d(HTuple function, HTuple XMin, HTuple XMax, HTuple XDist, HTuple border, out HTuple sampledFunction)

HFunction1D HFunction1D.SampleFunct1d(HTuple XMin, HTuple XMax, HTuple XDist, string border)

HFunction1D HFunction1D.SampleFunct1d(double XMin, double XMax, double XDist, string border)

def sample_funct_1d(function: Sequence[Union[float, int]], xmin: Union[float, int], xmax: Union[float, int], xdist: Union[float, int], border: str) -> Sequence[Union[float, int]]

Description

sample_funct_1dsample_funct_1dSampleFunct1dSampleFunct1dsample_funct_1d samples the input function FunctionFunctionFunctionfunctionfunction in the interval [XMinXMinXMinXMinxmin,XMaxXMaxXMaxXMaxxmax] at equidistant points with the distance XDistXDistXDistXDistxdist. The last point lies in the interval if XMaxXMaxXMaxXMaxxmax-XMinXMinXMinXMinxmin is not an integer multiple of XDistXDistXDistXDistxdist. To obtain the samples, the input function is interpolated linearly. The parameter BorderBorderBorderborderborder determines the values of the function FunctionFunctionFunctionfunctionfunction outside of its domain. For BorderBorderBorderborderborder='zero'"zero""zero""zero""zero" these values are set to 0, for BorderBorderBorderborderborder='constant'"constant""constant""constant""constant" they are set to the corresponding value at the border, for BorderBorderBorderborderborder='mirror'"mirror""mirror""mirror""mirror" they are mirrored at the border, and for BorderBorderBorderborderborder='cyclic'"cyclic""cyclic""cyclic""cyclic" they are continued cyclically.

Execution Information

Parameters

FunctionFunctionFunctionfunctionfunction (input_control)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input function.

XMinXMinXMinXMinxmin (input_control)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Minimum x value of the output function.

XMaxXMaxXMaxXMaxxmax (input_control)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Maximum x value of the output function.

Restriction: XMax > XMin

XDistXDistXDistXDistxdist (input_control)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Distance of the samples.

Restriction: XDist > 0

BorderBorderBorderborderborder (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Border treatment for the input function.

Default: 'constant' "constant" "constant" "constant" "constant"

List of values: 'constant'"constant""constant""constant""constant", 'cyclic'"cyclic""cyclic""cyclic""cyclic", 'mirror'"mirror""mirror""mirror""mirror", 'zero'"zero""zero""zero""zero"

SampledFunctionSampledFunctionSampledFunctionsampledFunctionsampled_function (output_control)  function_1d HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Sampled function.

Possible Predecessors

transform_funct_1dtransform_funct_1dTransformFunct1dTransformFunct1dtransform_funct_1d, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array, create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs

Module

Foundation