Sha256: 4b38570f0d74a47408e75436e7e86c247ac5dbda3b5d7ac051c3c38f51389ae2

Contents?: true

Size: 296 Bytes

Versions: 11

Compression:

Stored size: 296 Bytes

Contents

## MATH

### .average
calculates the average of the given values

```ruby
Math.average([ 0, 1, 2, 3, 4 ])
```

returns
```
2
```

It can also be used to calculate the average of weighted values

```ruby
Math.average(
  0 => 1,
  1 => 2,
  2 => 3,
  3 => 4,
  4 => 5
)
```

returns
```
2.6666
```

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
darthjee-core_ext-1.7.4 MATH_README.md
darthjee-core_ext-1.7.3 MATH_README.md
darthjee-core_ext-1.7.2 MATH_README.md
darthjee-core_ext-1.7.1 MATH_README.md
darthjee-core_ext-1.7.0 MATH_README.md
darthjee-core_ext-1.6.2 MATH_README.md
darthjee-core_ext-1.6.1 MATH_README.md
darthjee-core_ext-1.6.0 MATH_README.md
darthjee-core_ext-1.5.6 MATH_README.md
darthjee-core_ext-1.5.5 MATH_README.md
darthjee-core_ext-1.5.4 MATH_README.md