I would like to express below concisely and mathmatically
-
TP is a set of real numbers
-
$$C = \{ x \in TP : x > threshold \}$$
-
c_count = len(C)
Basically, in English, I want to count the number of numbers in TP is greater than threshold
notation
I would like to express below concisely and mathmatically
TP is a set of real numbers
$$C = \{ x \in TP : x > threshold \}$$
c_count = len(C)
Basically, in English, I want to count the number of numbers in TP is greater than threshold
Best Answer
Since $C$ is defined as a subset of $TP$ based on the premise of being greater than some threshold, then, if $C$ is finite, you can refer to "cardinality" - it is a measure of how many elements are in a set. It gets murkier for infinite sets, but for finite sets, the cardinality of a set is just the number of elements in the set.
How would one denote cardinality? There are several conventions I've seen: