Tuesday, December 13, 2011
MUMBAI UNIVERSITY ENGINEERING NOTES - MU | ENGINEERING | SYLLABUS | NOTES
by Unknown |
MUMBAI UNIVERSITY ENGINEERING NOTES - MU | ENGINEERING | SYLLABUS | NOTES
2011-12-13T21:25:00-08:00 Unknown Comments
|
Sunday, November 27, 2011
Kolmogorov-Smirnov Test
by Unknown |
Kolmogorov-Smirnov Test
2011-11-27T04:33:00-08:00 Unknown c++|Kolmogorov-Smirnov Test|programs|RANDOM NUMBER GENERATION|Test for Random Numbers|Testing for Uniformity| Comments
|
RANDOM NUMBER GENERATION
Test for Random Numbers
Test for Random Numbers
Testing for Uniformity
Refer : 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];
float cvalue,d,dplus,dminus,tplus,tminus;
dplus=0;
dminus=0;
cout<<"enter critical value";
cin>>cvalue;
cout<<"please enter number of values";
cin>>n;
for(i=0;i<n;i++)
{
cin>>r[i];
tplus=float((i+1)/n)-r[i]);
tminus=r[i]-float(i/n);
if(tplus>dplus)
{
dplus=tplus;
}
if(tminus>dminus)
{
dminus=tminus;
}
}
if(dplus>dminus)
d=dplus;
else
d=dminus;
cout<<d;
if(d<cvalue)
cout<<"uniform distribution is not rejected"<<endl;
else
cout<<"uniform distribution is rejected"<<endl;
getch();
}
//output:
Enter critical value 15
Please enter number of values
2
5
6
uniform distribution is not rejected
Runs Up and Runs Down
by Unknown |
Runs Up and Runs Down
2011-11-27T04:18:00-08:00 Unknown c++|DWM.BI|programs|RANDOM NUMBER GENERATION|Runs Up and Runs Down|Testing for Independence| Comments
|
RANDOM NUMBER GENERATION
Test for Random Numbers
Test for Random Numbers
Testing for Independence
Runs Up and Runs Down
Q) 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/2: "; cin>>za; cout<<"\n Enter number of nos. : "; cin>>n; cout<<"\n Enter the nos.: "; for(i=0;i<n;i++) { cin>>N[i]; } for(i=0;i<n-1;i++) { if(N[i]<N[i+1]) { cout<<"+"; c[i]=1; } else { cout<<"-"; c[i]=0; } } for(i=0;i<n-1;i++) { if(c[i]!=c[i+1]) count++; } cout<<"\n No of Runs="<<count<<"\n"; mean=(2*n-1)/3; variancesq=(16*n-29)/90; variance=sqrt(variancesq); z0=(a-mean)/variance; if((za<z0)&&(z0<(0-za))) cout<<"\n The numbers are independent"; else cout<<"\n The numbers are auto-correlated and not independent"; return 0; } //OUTPUT: Enter Critical Value: 0.05 Enter value of za/2: 1.96 Enter number of nos.10 Enter the nos. 0.15 0.27 0.37 0.10 0.50 0.60 0.80 0.70 0.59 -++-+++-- No of Runs=5 The numbers are auto-correlated and not independent
Monday, February 28, 2011
Stack Using Array Implementation In Java
by Unknown |
Stack Using Array Implementation In Java
2011-02-28T10:41:00-08:00 Unknown Data Structure and Algorithms|dsa|java|stack| Comments
|
Selection Sort Implementation In JAVA
by Unknown |
Selection Sort Implementation In JAVA
2011-02-28T10:39:00-08:00 Unknown Data Structure and Algorithms|dsa|java|selection sort|Sorting Techniques| Comments
|
Radix Sort Implementation In Java
by Unknown |
Radix Sort Implementation In Java
2011-02-28T10:36:00-08:00 Unknown Data Structure and Algorithms|dsa|java|radix sort|Sorting Techniques| Comments
|
Quick SOrt Recursive Implementation In Java
by Unknown |
Quick SOrt Recursive Implementation In Java
2011-02-28T10:34:00-08:00 Unknown Data Structure and Algorithms|dsa|java|quick sort|recursive|Sorting Techniques| Comments
|
Quick Sort Implementation In Java
by Unknown |
Quick Sort Implementation In Java
2011-02-28T10:32:00-08:00 Unknown Data Structure and Algorithms|dsa|java|quick sort|Sorting Techniques| Comments
|
Queue Using Array Implementation In JAVA
by Unknown |
Queue Using Array Implementation In JAVA
2011-02-28T10:29:00-08:00 Unknown Data Structure and Algorithms|dsa|java|queue|Queue Using Array| Comments
|
Queue Implementation In JAVA
by Unknown |
Queue Implementation In JAVA
2011-02-28T10:26:00-08:00 Unknown Data Structure and Algorithms|dsa|java|queue| Comments
|
Prims Algorithms Implementation In Java
by Unknown |
Prims Algorithms Implementation In Java
2011-02-28T10:23:00-08:00 Unknown Data Structure and Algorithms|dsa|Graph Traversals|java|PRIMS ALGORITHMS| Comments
|
Merge Recursive Sort Implementation In Java
by Unknown |
Merge Recursive Sort Implementation In Java
2011-02-28T10:19:00-08:00 Unknown Data Structure and Algorithms|dsa|java|merge sort|recursive|Sorting Techniques| Comments
|
Merge Sort Implementation In Java
by Unknown |
Merge Sort Implementation In Java
2011-02-28T10:15:00-08:00 Unknown Data Structure and Algorithms|dsa|java|merge sort|Sorting Techniques| Comments
|
Matrix Operations Implementation In Java
by Unknown |
Matrix Operations Implementation In Java
2011-02-28T10:12:00-08:00 Unknown Data Structure and Algorithms|dsa|java|matrix|operations| Comments
|
Linked List Implementation In Java
by Unknown |
Linked List Implementation In Java
2011-02-28T10:10:00-08:00 Unknown Data Structure and Algorithms|dsa|java|linked list| Comments
|
Heap Sort Implementation In Java
by Unknown |
Heap Sort Implementation In Java
2011-02-28T10:08:00-08:00 Unknown Data Structure and Algorithms|dsa|heap sort|java|Sorting Techniques| Comments
|
Hash Search Implementation In Java
by Unknown |
Hash Search Implementation In Java
2011-02-28T10:05:00-08:00 Unknown Data Structure and Algorithms|dsa|hash search|hash table|java|search tree| Comments
|
Bucket Sort Implementation In Java
by Unknown |
Bucket Sort Implementation In Java
2011-02-28T09:59:00-08:00 Unknown Bucket Sort|Data Structure and Algorithms|dsa|java|Sorting Techniques| Comments
|
Depth First Search Implementation in Java
by Unknown |
Depth First Search Implementation in Java
2011-02-28T09:52:00-08:00 Unknown Data Structure and Algorithms|depth first search|dfs|dsa|Graph Traversals|java| Comments
|
Breath First Search Implementation In Java
by Unknown |
Breath First Search Implementation In Java
2011-02-28T09:46:00-08:00 Unknown bfs|Breath First Search|Data Structure and Algorithms|dsa|Graph Traversals|java| Comments
|
Binary Search Implementation In Java
by Unknown |
Binary Search Implementation In Java
2011-02-28T09:38:00-08:00 Unknown binary search|Data Structure and Algorithms|dsa|java|search tree| Comments
|