Skip to content

Tom-Hermann/204ducks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

204ducks

When ducks are disturbed by a sudden noise, they fly away almost simultaneously, leaving the pond empty.

Chances that a duck will then come back after t minutes are given by the following probability density function:

image

Where a is a real constant between 0 and 2.5

The program display the following given the value of a

  1. The average time after which ducks come back,
  2. The standard deviation of the ducks’ return time,
  3. The time after which 50% of all of the ducks are back,
  4. The time after which 99% of all of the ducks are back,
  5. The percentage of ducks that come back after 1 minute,
  6. The percentage of ducks that come back after 2 minutes.

Compile

The project compile with Makefile:

For compile the project use the commande:

foo@bar:~/204ducks$ make re

For clean the project use:

foo@bar:~/204ducks$ make fclean

Get instruction with:

foo@bar:~/204ducks$ ./204ducks -h

Launch test with:

foo@bar:~/204ducks$ make test
foo@bar:~/204ducks$ ./unit_test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published