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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:43:16+00:00 2026-05-28T04:43:16+00:00

eeesh that title isn’t very good. Here is the situation. I have a simulation

  • 0

eeesh that title isn’t very good.

Here is the situation.

I have a simulation that runs in real time, I’m trying to efficiently simulate a random count rate that has a known expectation value over a specific delta time and the probability distribution has a known standard deviation, variance etc etc…

I only want an integer number of counts, that is, for consecutive delta times I get results like 2, 1, 0, 3, 1, 2, 0, 1.

Currently I just multiply the number of counts per second by the delta time in seconds and add this to a running counts variable, and for displaying I round it down by casting to int from float. This won’t cut the mustard in the end =(

I’m running ~60 fps and don’t want to kill peoples processors if I can help it.

What would be a good way to accomplish this efficiently (I’m using Java)?

  • 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-28T04:43:17+00:00Added an answer on May 28, 2026 at 4:43 am

    It sounds like an Exponential distribution / Poisson process may be appropriate. An exponential distribution models the time between occurrences of a discrete event. The lambda parameter represents the rate of arrival of events. The Poisson process provides an alternate representation of the same underlying process, giving you the count (integer, from 0 to +inf) of events that happened in a certain timeframe.
    The Poisson distribution is fairly easy to simulate. The lambda of Poisson represents the expected number of events in a time interval, and can be simulated that way.
    One way to validate whether this is an adequate way to represent/simulate your process is to verify that the mean, variance etc… satisfy what they should be, if it were to follow such a process.

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

Sidebar

Related Questions

I have a series of txt files. I have all these filenames in a
I'm no jQuery expert but managed to get the effects running I required for

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.