コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
stddev
stddev(numericExpression)
説明
stddev
関数は、すべての可能な値の標準偏差を返します。
パラメータのデータ型
NUMBER
戻り値の型
NUMBER
コードサンプル
例
target.ip
が空でないすべてのイベントを検索します。principal.ip
に一致するすべてのイベントについて、metadata.event_timestamp.seconds
の標準偏差を stddev_seconds
という変数に格納します。
target.ip != ""
match:
principal.ip
outcome:
$stddev_seconds = stddev(metadata.event_timestamp.seconds)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-29 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-29 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003estddev\u003c/code\u003e function calculates the standard deviation across a set of numeric values.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a \u003ccode\u003eNUMBER\u003c/code\u003e data type as input, represented by the \u003ccode\u003enumericExpression\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe function's output is a \u003ccode\u003eNUMBER\u003c/code\u003e representing the calculated standard deviation.\u003c/p\u003e\n"],["\u003cp\u003eAn example use case includes calculating the standard deviation of \u003ccode\u003emetadata.event_timestamp.seconds\u003c/code\u003e for events matching \u003ccode\u003eprincipal.ip\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["### stddev\n\n stddev(numericExpression)\n\n#### Description\n\nThe `stddev` function returns the standard deviation over all the possible\nvalues.\n\n#### Param data types\n\n`NUMBER`\n\n#### Return type\n\n`NUMBER`\n\n#### Code Samples\n\n##### Example\n\nFind all the events where `target.ip` is not empty. For all the events that\nmatch on `principal.ip`, store the standard deviation of\n`metadata.event_timestamp.seconds` in a variable called `stddev_seconds`. \n\n target.ip != \"\"\n match:\n principal.ip\n outcome:\n $stddev_seconds = stddev(metadata.event_timestamp.seconds)"]]