window.mode

다음에서 지원:
window.mode(values)

설명

입력 값 모드를 반환합니다. 가능한 모드 값이 여러 개인 경우 이러한 값 중 하나만 반환 값으로 비결정적으로 선택됩니다.

매개변수 데이터 유형

INT|FLOAT|STRING

반환 유형

STRING

코드 샘플

예 1

일치 기간의 값 모드를 가져옵니다.

// This rule sets the outcome $size_mode to the most frequently occurring
// file size in the 5 minute match window.
events:
 $e.user.userid = $userid
match:
 $userid over 5m
outcome:
  $size_mode = window.mode($e.file.size) // yields 1.6 if the event file size values in the match window are 1.6, 2, and 1.6