
convert this algorithm to java code IsSample_PAS: 1.for every attribute value aj belongs to ti do begin (here aj=1,2...,ti=1,2..) 2.if(CF(aj)=null)(where CF is a function) 3.insert n(sj)=0,s(aj)=0 in to CF 4.n(aj)++; 5.if aj is not proportion preserved value 6.vi=vi U aj(vi is empty initially) 7.end 8.calculate pr 9.if(pr(ti)>=R())(returns random no in0..1) 10. for every attribute value aj belongs to ti 11s(aj)++; 12.return true; 13.else 14.return false; (this is algorithm from ieee paper QUALITY AWARE SAMPLING AND ITS APPLICATIONS IN INCREMENTAL DATA MINING)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.