- MathRandomNonZero
- MathMoments
- MathPowInt
- MathFactorial
- MathTrunc
- MathRound
- MathArctan2
- MathGamma
- MathGammaLog
- MathBeta
- MathBetaLog
- MathBetaIncomplete
- MathGammaIncomplete
- MathBinomialCoefficient
- MathBinomialCoefficientLog
- MathHypergeometric2F2
- MathSequence
- MathSequenceByCount
- MathReplicate
- MathReverse
- MathIdentical
- MathUnique
- MathQuickSortAscending
- MathQuickSortDescending
- MathQuickSort
- MathOrder
- MathBitwiseNot
- MathBitwiseAnd
- MathBitwiseOr
- MathBitwiseXor
- MathBitwiseShiftL
- MathBitwiseShiftR
- MathCumulativeSum
- MathCumulativeProduct
- MathCumulativeMin
- MathCumulativeMax
- MathSin
- MathCos
- MathTan
- MathArcsin
- MathArccos
- MathArctan
- MathSinPi
- MathCosPi
- MathTanPi
- MathAbs
- MathCeil
- MathFloor
- MathSqrt
- MathExp
- MathPow
- MathLog
- MathLog2
- MathLog10
- MathLog1p
- MathDifference
- MathSample
- MathTukeySummary
- MathRange
- MathMin
- MathMax
- MathSum
- MathProduct
- MathStandardDeviation
- MathAverageDeviation
- MathMedian
- MathMean
- MathVariance
- MathSkewness
- MathKurtosis
- MathExpm1
- MathSinh
- MathCosh
- MathTanh
- MathArcsinh
- MathArccosh
- MathArctanh
- MathSignif
- MathRank
- MathCorrelationPearson
- MathCorrelationSpearman
- MathCorrelationKendall
- MathQuantile
- MathProbabilityDensityEmpirical
- MathCumulativeDistributionEmpirical
MathSample
配列要素からランダムサンプルを生成します。
実数配列を扱うためのバージョン:
bool MathSample(
|
整数配列を扱うためのバージョン:
bool MathSample(
|
実数配列を扱うためのバージョン。サンプルは置き換えで得ることが可能です:
bool MathSample(
|
整数配列を扱うためのバージョン:サンプルは置き換えで得ることが可能です:
bool MathSample(
|
サンプリングの確率が定義されている実数配列を扱うためのバージョン:
bool MathSample(
|
サンプリングの確率が定義されている整数配列を扱うためのバージョン:
bool MathSample(
|
サンプリングの確率が定義されている実数配列を扱うためのバージョン:サンプルは置き換えで得ることが可能です:
bool MathSample(
|
サンプリングの確率が定義されている整数配列を扱うためのバージョン:サンプルは置き換えで得ることが可能です:
bool MathSample(
|
パラメータ
array[]
[in] 整数配列
probabilities[]
[in] 要素をサンプルするための確率配列
count
[in] 要素数
replace
[in] 置き換えによるサンプリングを可能にするパラメータ
result[]
[out] 結果を出力する配列.
戻り値
成功の場合は true、それ以外の場合は false。
注意事項
replace=true引数を使用すると、元のシーケンスに置き換えて元の要素を無作為抽出することができます。