Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/centic9/benfordslaw

Sample application showing Benford's Law by looking at file sizes on the local disk
https://github.com/centic9/benfordslaw

Last synced: 2 days ago
JSON representation

Sample application showing Benford's Law by looking at file sizes on the local disk

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/centic9/BenfordsLaw.svg)](https://travis-ci.org/centic9/BenfordsLaw) [![Gradle Status](https://gradleupdate.appspot.com/centic9/BenfordsLaw/status.svg?branch=master)](https://gradleupdate.appspot.com/centic9/BenfordsLaw/status)

BenfordsLaw
===========

Sample application showing [Benford's Law](https://en.wikipedia.org/wiki/Benford%27s_law) by looking at file sizes of
files found on the local disk.

It may initially show a different distribution, but when looking at many files it usually will converge to the default
distribution suggested by Benford unless the file sizes are not randomly spread, i.e. if large numbers of equally sized
files are stored.

## Getting started

#### Build it and create the distribution files

./gradlew install

#### Run it

build/install/BenfordsLaw/bin/BenfordsLaw

It will start to fetch sizes of files on your local disk and print out the current count of sizes starting with the
numbers from 0 to 9 (0 is only used for 0-sized files).

You can also pass in the start-directory as commandline argument.

#### Change it

Create matching Eclipse project files

./gradlew eclipse

#### Licensing

* BenfordsLaw is licensed under the [MIT License].