User Profile

Collapse

Profile Sidebar

Collapse
grabonlee
grabonlee
Last Activity: Jul 22 '07, 07:54 PM
Joined: Jul 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • grabonlee
    replied to Unable 2 compile
    in Java
    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>...
    See more | Go to post

    Leave a comment:


  • grabonlee
    started a topic Unable 2 compile
    in Java

    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;
    }...
    See more | Go to post
    Last edited by prometheuzz; Jul 22 '07, 06:51 PM. Reason: Added code tags

  • grabonlee
    replied to Bivariate Gaussian Generator
    in Java
    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?...
    See more | Go to post

    Leave a comment:


  • grabonlee
    started a topic Bivariate Gaussian Generator
    in Java

    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,
    ...
    See more | Go to post

  • grabonlee
    replied to Bivariate Gaussian Generator
    in Java
    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( )...
    See more | Go to post

    Leave a comment:


  • grabonlee
    started a topic Help needed desperately
    in Java

    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.
    See more | Go to post

  • grabonlee
    replied to Bivariate Gaussian Generator
    in Java
    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)...
    See more | Go to post

    Leave a comment:


  • grabonlee
    started a topic Bivariate Gaussian Generator
    in Java

    Bivariate Gaussian Generator

    Hi

    Please can anyone write a code to generate random numbers of array length 2 from setMean and setCovariance?
    See more | Go to post
No activity results to display
Show More
Working...