---
name: "decayGraphValues"
type: command
status: ok
groups: ["Math"]
arma3_since: "1.92"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/decayGraphValues
revid: 309184
updated: 2022-05-03T18:08:43Z
---

# decayGraphValues

*Command · Math · Arma 3 v1.92*

## Description

Multiplies graph values by the given coefficient. The corresponding lower bound value is used instead if the product is smaller than the bound.

## Syntax

```sqf
decayGraphValues [lowerBoundValues, graphValues, coef]
```

**Parameters:**

- `lowerBoundValues`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s - lower bound for the new graph
- `graphValues`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s - graph values
- `coef`: [Number](../topics/Number.md) - the multiplication coefficient

**Returns:** [Array](../topics/Array.md) of [Number](../topics/Number.md)s

## Examples

### Example 1

```sqf
decayGraphValues [[1,2,3,4,5], [1,4,9,16,25], 0.3]; // returns [1,2,3,4.8,7.5]
```

## See also

[getGraphValues](../commands/getGraphValues.md)

<sub>Source: [BI Community Wiki — decayGraphValues](https://community.bistudio.com/wiki/decayGraphValues) (revision 309184).</sub>
