CountDistinctBy
CountDistinctBy[{e1,e2,…},f]
f[ei]の他とは異なる値の数を与える.
式に適用可能なCountDistinctByの演算子形を与える.
詳細
- CountDistinctBy[<key1val1,key2val2,… >, f]は他とは異なる f[vali]の値を数える.
- CountDistinctBy[f][expr]はCountDistinctBy[expr,f]と等しい.
例題
すべて開くすべて閉じる例 (2)
特性と関係 (2)
CountDistinctBy[list,f]はCountDistinct[f/@list]と同じ結果を与える:
CountDistinctBy[list,f]は,変換 f を各要素に適用し,その結果を比較する:
CountDistinct[list,test]は,test を2つの要素に適用し,両者が等しいかどうかを判定する:
Wolfram Research (2014), CountDistinctBy, Wolfram言語関数, https://reference.wolfram.com/language/ref/CountDistinctBy.html.
テキスト
Wolfram Research (2014), CountDistinctBy, Wolfram言語関数, https://reference.wolfram.com/language/ref/CountDistinctBy.html.
CMS
Wolfram Language. 2014. "CountDistinctBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CountDistinctBy.html.
APA
Wolfram Language. (2014). CountDistinctBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CountDistinctBy.html