private HashSet generateSet ( ) { int y [ ] = new int [ m_L ] ; // [0,0,0] int k = samplePMF ( priors_norm ) ; // k = 1 // y[k] ~ p(k==1) y [ k ] = 1 ; // [0,1,0] ArrayList < Integer > indices = getShuffledListToLWithoutK ( m_L , k ) ; for ( int j : indices ) { //y[j] ~ p(j==1|y) y [ j ] = ( joint ( j , y ) > m_MetaRandom . nextDouble ( ) ) ? 1 : 0 ; } return vector2set ( y ) ; }
Generate Set .