Skip to content
This repository
Newer
Older
100644 30 lines (22 sloc) 0.909 kb
3b16cd29 »
2009-01-29 adding lists, graph, functors, interpolators, unit tests, and import.ck
1 /*
2
3 LiCK Library for ChucK.
f29d9098 »
2014-01-02 updating copyright year
4 Copyright (c) 2007-2014 held jointly by the individual authors.
3b16cd29 »
2009-01-29 adding lists, graph, functors, interpolators, unit tests, and import.ck
5
6 This file is part of LiCK.
7
8 LiCK is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 LiCK is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with LiCK. If not, see <http://www.gnu.org/licenses/>.
20
21 */
22
23 public class RandomThreshold extends Interpolation
24 {
f20f056c »
2009-06-15 improving interpolation implementations, adding Elastic* and Back*, a…
25 fun float evaluate(float value)
3b16cd29 »
2009-01-29 adding lists, graph, functors, interpolators, unit tests, and import.ck
26 {
f20f056c »
2009-06-15 improving interpolation implementations, adding Elastic* and Back*, a…
27 return Std.rand2f(0.0, value);
3b16cd29 »
2009-01-29 adding lists, graph, functors, interpolators, unit tests, and import.ck
28 }
29 }
Something went wrong with that request. Please try again.