{"name":"decayGraphValues","operator":null,"title":"decayGraphValues","type":"command","url":"https://community.bistudio.com/wiki/decayGraphValues","revid":309184,"updated":"2022-05-03T18:08:43Z","groups":["Math"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.92"}],"since":{"game":"arma3","name":"Arma 3","version":"1.92"},"arma3_since":"1.92","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Multiplies graph values by the given coefficient. The corresponding lower bound value is used instead if the product is smaller than the bound.","syntaxes":[{"syntax":"decayGraphValues [lowerBoundValues, graphValues, coef]","since":null,"effect":null,"exec":null,"params":[{"name":"lowerBoundValues","type":"Array of Numbers","optional":false,"default":null,"description":"lower bound for the new graph","types":["Array","Number"],"since":null,"text":"lowerBoundValues: Array of Numbers - lower bound for the new graph"},{"name":"graphValues","type":"Array of Numbers","optional":false,"default":null,"description":"graph values","types":["Array","Number"],"since":null,"text":"graphValues: Array of Numbers - graph values"},{"name":"coef","type":"Number","optional":false,"default":null,"description":"the multiplication coefficient","types":["Number"],"since":null,"text":"coef: Number - the multiplication coefficient"}],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":null,"text":"Array of Numbers"},"form":"unary","operator":null,"left":null,"right":{"text":"[lowerBoundValues, graphValues, coef]","types":["Array"]}}],"examples":[{"text":"```sqf\ndecayGraphValues [[1,2,3,4,5], [1,4,9,16,25], 0.3]; // returns [1,2,3,4.8,7.5]\n```","code":["decayGraphValues [[1,2,3,4,5], [1,4,9,16,25], 0.3]; // returns [1,2,3,4.8,7.5]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getGraphValues"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Math","Introduced with Arma 3 version 1.92","Scripting Commands"]}