クラス BitPatternUtils
java.lang.Object
org.nkjmlab.util.java.math.BitPatternUtils
-
コンストラクタの概要
-
メソッドの概要
修飾子とタイプメソッド説明getBitPatterns
(int n) Gets bit patterns.getBitPatternsAsInt
(int n) Gets bit patterns.
-
コンストラクタの詳細
-
BitPatternUtils
public BitPatternUtils()
-
-
メソッドの詳細
-
getBitPatternsAsInt
Gets bit patterns.getBitpatterns(3)
returns [ [0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 1], [1, 0, 0], [1, 0, 1], [1, 1, 0], [1, 1, 1] ]- パラメータ:
n
- length of bit.- 戻り値:
- order by ascendant
-
getBitPatterns
Gets bit patterns.getBitpatterns(3)
returns[ [false, false, false], [false, false, true], [false, true, false], [false, true, true], [true, false, false], [true, false, true], [true, true, false], [true, true, true] ]
- パラメータ:
n
- length of bit.- 戻り値:
- order by ascendant
-