| Home | My Account | Directories |
Kolmogorov-Smirnov Test
Published on 2011-11-27 06:33:00
RANDOM NUMBER GENERATION Test for Random Numbers Testing for UniformityRefer : Kolmogorov-Smirnov Goodness-of-Fit Test for more detail explanation.Q) Write a program for implementation of Testing for Uniformity in Kolmogorov-Smirnov Test using C++ .ANS. /* Program for Kolmogorov-Smirnov Test */ #include<iostream.h> #include<conio.h> void main() { clrscr(); int n,i; float r[100]; fl
Runs Up and Runs Down
Published on 2011-11-27 06:18:00
RANDOM NUMBER GENERATION Test for Random Numbers Testing for IndependenceRuns Up and Runs DownQ) Write a program for implementation of Testing for Independence in Runs Up and Runs Down using C++ .ANS. /* Program for Runs Up and Runs Down */ #include<iostream.h> #include<math.h> int main() { float N[10]; int n, count=0,1; int c[10]; float mean , variance, variancesq, z0, za, z; cout<<"n Enter Critical Value: "; cin>>a; cout<<"n Enter value of za
Stack Using Array Implementation In Java
Published on 2011-02-28 12:41:00
Stack Using Array Implementation In Java import java.io.*; class stk { int st[]; int max; int top; stk(int n) { max=n; st=new int[n]; top=-1; } void push(int a) { int b; b=a; if(top==max-1) { System.out.println("tt*****stack is overflow!!!!!******n"); } else { top=top+1; st[top]=b; } } void pop() { if(top==-1) { System.out.println("ttstack is underflow!!!!!n"); } else { int temp; temp=st[top]; top=top-1; System.out.println(""+temp+"is deletedn");