protected double [ ] modifyPriorVector ( double P [ ] , double u , Random r , boolean skew ) { for ( int j = 0 ; j < P . length ; j ++ ) { if ( r . nextDouble ( ) < u ) { P [ j ] = r . nextDouble ( ) ; } } return P ; }
ModifyPriorVector . A certain number of values will be altered .