public float patternLineCoverage ( ) { BitArray lin = new BitArray ( width ) ; bits . forEach ( ( i ) - > lin . set ( column ( i ) , true ) ) ; return ( float ) lin . count ( ) / ( float ) width ; }
Returns 1 . 0 if all columns have set bits or less