CountDistinctBy[{e1,e2,…},f]
f[ei]の他とは異なる値の数を与える.
式に適用可能なCountDistinctByの演算子形を与える.
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.
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
BibTeX
@misc{reference.wolfram_2025_countdistinctby, author="Wolfram Research", title="{CountDistinctBy}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/CountDistinctBy.html}", note=[Accessed: 01-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_countdistinctby, organization={Wolfram Research}, title={CountDistinctBy}, year={2014}, url={https://reference.wolfram.com/language/ref/CountDistinctBy.html}, note=[Accessed: 01-May-2026]}