Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7438691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:35:37+00:00 2026-05-29T10:35:37+00:00

I would like to be able to generate these bellcurves from very little data:

  • 0

I would like to be able to generate these bellcurves from very little data:

bell cuves

I’m looking for a function in php that would give me the data generated by these bell curves. I don’t know yet what I’m going to use to display them, but I need the data first.

I’m not very good at math, I’ve tried creating some normal distribution, but there isn’t an easy way to say: “I want a thin bell curve” or “I want a large one”.

Maybe using the arguments that are on top of the right side of the picture above might be cool.

Would someone know how I can reproduce the datapoints of these graphs in PHP ?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:35:38+00:00Added an answer on May 29, 2026 at 10:35 am

    Well, you could look up the formula of the normal distribution’s probability density on Wikipedia.

    A PHP implementation of this function would look like this:

    function normal($x, $mu, $sigma) {
        return exp(-0.5 * ($x - $mu) * ($x - $mu) / ($sigma*$sigma))
            / ($sigma * sqrt(2.0 * M_PI));
    }
    

    This function will give you the value of the bell curves you posted.
    I really suggest you read the Wikipedia article on the function, but to put it simply, $mu marks the position of the central peak of the bell curve and $sigma determines its width (a larger value for $sigma means a broader distribution).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to be able to create a variable that holds an instance
I would like to be able to define a function which accepts an argument
Looking for something like PyDoc that can generate a set of Wiki style pages
I would like to write a program or script that would generate .vcproj and
Would like to be able to set colors of headings and such, different font
I would like to be able to output the name of a variable, along
I would like to be able to print in the logs a message for
I would like to be able to show a personal message to abusers of
I would like to be able to go: sed s/^\(\w+\)$/leftside\1rightside/ and have the group
I would like to be able to redirect if a route constraint fails, rather

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.