fit a normal distribution

Hello,

I have two colums of data. Is there a function that helps me to fit each group of dat in normal distirubtion?

Or there's no such function but I will have to define the interval and the frequency of each interval to get the histogram?

1 Answer



0



You can plot a histogram of your data by passing the data directly in to either plotHistF for a frequency histogram or plotHistP for a percentage histogram. You only need to specify the number of bins. You do not need to define the interval or calculate the frequency. For example, if you have a variable named my_data that has two columns, you could create a frequency histogram with 20 bins like this:

plotHistF(my_data[.,1], 20);

If you wanted to add a separate frequency histogram for the second column, you could do that with the function plotAddHistF like this:

plotAddHistF(my_data[.,2], 20);

aptech

1,773

Your Answer

1 Answer

0

You can plot a histogram of your data by passing the data directly in to either plotHistF for a frequency histogram or plotHistP for a percentage histogram. You only need to specify the number of bins. You do not need to define the interval or calculate the frequency. For example, if you have a variable named my_data that has two columns, you could create a frequency histogram with 20 bins like this:

plotHistF(my_data[.,1], 20);

If you wanted to add a separate frequency histogram for the second column, you could do that with the function plotAddHistF like this:

plotAddHistF(my_data[.,2], 20);

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy