Here it is:
C:\Documents and Settings\Grabon lee\Desktop\Rew ork1>javac Test.java
.\Test1.java:27 : missing return statement
}
^
1 error
C:\Documents and Settings\Grabon lee\Desktop\Rew ork1>...
User Profile
Collapse
-
Unable 2 compile
Please I'm trying to compile the program. I'm being asked for a return type and variable. Please could u fix it. The program is meant 2 calculate the mean of up to 10000 randomly generated numbers. Thanks
[CODE=java] class Test1
{
static float mu1,mean1;
public static void setMean(float mu1)
{
mean1=mu1;
}... -
Thanks
Yes I want to create array.length = 2. I also want each array to generate up 100,000 random numbers, which would be bound by a defined mean and covariance.
I want to also plot a graph. Like in Matlab, the more the random samples, the clearer the graph. What can I do?...Leave a comment:
-
Bivariate Gaussian Generator
Hi
Please take a look at the code below. I'm trying to generate an array of random numbers with mean(1.0,1.0) and covariance(1.0, 0.0,0.0,1.0).
I'm stuck with how to make the number of samples(random numbers) up 10000.
import java.util.Rando m;
public class BivariateGaussi anGenerator
{
static float mu1,mu2,co1,co2 ,co3,co4,covari ance1,
... -
Hi
the link you sent is for matlab.
I want to write a class that wraps up a random number generator given the following instance methods;
void setMean(float,f loat)
void setCovariance(f loat,float,floa t)
float[] generateRandom( )...Leave a comment:
-
Help needed desperately
Hi
I need someone who is very good in Java to help me tackle a problem on Bivariate Gaussian Generator. If u could send me ur email add, so dat I could scan a copy and send to you. -
The class Random generates random numbers from a gaussian distribution that is one dimensional(uni variate). My problem is how to generate bivariate random numbers from Mean(1.0,1.0) and Covariance(1.0, 0.0,0.0,1.0)...Leave a comment:
-
Bivariate Gaussian Generator
Hi
Please can anyone write a code to generate random numbers of array length 2 from setMean and setCovariance?
No activity results to display
Show More
Leave a comment: