sample_funct_1dT_sample_funct_1dSampleFunct1dSampleFunct1dsample_funct_1d (Operator)
Name
sample_funct_1dT_sample_funct_1dSampleFunct1dSampleFunct1dsample_funct_1d — Taste eine Funktion in einem Intervall äquidistant ab.
Signatur
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
(Nur Windows)
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]]
Beschreibung
sample_funct_1dsample_funct_1dSampleFunct1dSampleFunct1dSampleFunct1dsample_funct_1d tastet die Eingabefunktion FunctionFunctionFunctionFunctionfunctionfunction
im Intervall [XMinXMinXMinXMinXMinxmin,XMaxXMaxXMaxXMaxXMaxxmax] an äquidistanten
Stützstellen mit dem Abstand XDistXDistXDistXDistXDistxdist ab. Die letzte
Stützstelle liegt im Intervall, falls XMaxXMaxXMaxXMaxXMaxxmax-XMinXMinXMinXMinXMinxmin
kein ganzzahliges Vielfaches von XDistXDistXDistXDistXDistxdist ist. Bei der
Abtastung wird die Eingabefunktion linear interpoliert. Der
Parameter BorderBorderBorderBorderborderborder entscheidet, welchen Wert die Funktion
FunctionFunctionFunctionFunctionfunctionfunction außerhalb des gültigen Bereichs hat. Für
BorderBorderBorderBorderborderborder='zero'"zero""zero""zero""zero""zero" wird der Wert auf 0 gesetzt, für
BorderBorderBorderBorderborderborder='constant'"constant""constant""constant""constant""constant" auf den jeweiligen Randwert,
für BorderBorderBorderBorderborderborder='mirror'"mirror""mirror""mirror""mirror""mirror" werden die Funktionswerte am
Rand gespiegelt und für BorderBorderBorderBorderborderborder='cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic" werden
sie zyklisch fortgesetzt.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
FunctionFunctionFunctionFunctionfunctionfunction (input_control) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Eingabefunktion.
XMinXMinXMinXMinXMinxmin (input_control) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Minimaler x-Wert der Ausgabefunktion.
XMaxXMaxXMaxXMaxXMaxxmax (input_control) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Maximaler x-Wert der Ausgabefunktion.
Restriktion: XMax > XMin
XDistXDistXDistXDistXDistxdist (input_control) number → HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Abstand der Abtastwerte.
Restriktion: XDist > 0
BorderBorderBorderBorderborderborder (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Randbehandlung für die Eingabefunktion.
Defaultwert:
'constant'
"constant"
"constant"
"constant"
"constant"
"constant"
Werteliste: 'constant'"constant""constant""constant""constant""constant", 'cyclic'"cyclic""cyclic""cyclic""cyclic""cyclic", 'mirror'"mirror""mirror""mirror""mirror""mirror", 'zero'"zero""zero""zero""zero""zero"
SampledFunctionSampledFunctionSampledFunctionSampledFunctionsampledFunctionsampled_function (output_control) function_1d → HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Abgetastete Funktion.
Vorgänger
transform_funct_1dtransform_funct_1dTransformFunct1dTransformFunct1dTransformFunct1dtransform_funct_1d,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array,
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
Modul
Foundation