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 7594365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:23:51+00:00 2026-05-30T21:23:51+00:00

My Perlin noise function (which adds up 6 octaves of 3D simplex at 0.75

  • 0

My Perlin noise function (which adds up 6 octaves of 3D simplex at 0.75 persistence) generates a 2D array array of doubles.

These numbers each come out normalized to [-1, 1], with mean at 0. I clamp them to avoid exceptions, which I think are due to floating-point accuracy issues, but I am fairly sure my scaling factor is good enough for restricting the noise output to exactly this neighborhood in the ideal case.

Anyway, that’s all details. The point is, here is a 256-by-256 array of noise:

enter image description here

The histogram with a normal fit looks like this:

enter image description here

Matlab’s lillietest is a function which applies the Lilliefors test to determine if a set of numbers comes from a normal distribution. My result was, repeatedly, 1, which means that these numbers are not normally distributed.

I would like a function f(x) such that, when applied to the list of values from my noise function, the results appear uniformly distributed.

I would like this function to be implementable in C# and not take minutes to run.

Once again, it shouldn’t matter where the numbers come from (the question is about transforming one distribution into another, specifically a normal-like one to uniform). Nevertheless, my noise function implementation is based on this and this. You can find the above array of values here.

  • 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-30T21:23:52+00:00Added an answer on May 30, 2026 at 9:23 pm

    Oddly enough I just wrote an article on your very question:

    http://ericlippert.com/2012/02/21/generating-random-non-uniform-data/

    There I discuss how to turn a uniform distribution into some other distribution, but of course you can use similar techniques to transform other distributions.

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

Sidebar

Related Questions

I am using a perlin noise function to generate data for a game I
I'm reading a tutorial on Perlin Noise , and I came across this function:
Every implementation I've come across of perlin noise generation has been for the generation
As far as I know, certain mathematical functions like FFTs and perlin noise, etc.
I'm implementing a coherent noise function, and was surprised to find that using gradient
Are there any good resources out there detailing Perlin noise generation? I understand that
I am wondering what is the best hash function for procedural textures, especially perlin
I'm using libnoise to generate Perlin noise on a 1024x1024 terrain grid. I want
How can i get a sand effect in perlin-noise ? Do somebody have any
I have been looking into perlin noise for an application I'm working on its

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.