python - Total number of records in a bulk of data based on attr. categories -


i have data contains 5 attributes x1, x2, x3, x4, x5. x1 binary cases, let (0 s,1 s). x2 (0 s, 1 s, , 2 s), x3 five-folds (1, 2, 3, 4, 5) , on.

how calculate total number of cases?

thank you, markus

i tried apply set theory , found cartesian product can solve intending do.

the variables sets. took number of unique values in each set , multiplied them. result correct.

the following link may helpful:

https://www.mathsisfun.com/sets/injective-surjective-bijective.html


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -