Browse Search Popular Register Upload Rules User list Login:
Search:
Moving Average, Average and List Interpolation Scripts!

Image:
screenshot of the scene

Author: CPJchute

Group: Default

Filesize: 27.7 kB

Date added: 2024-04-08

Rating: 5.3

Downloads: 231

Views: 159

Comments: 3

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Info in scene.
Please log in to rate this scene
edit
Similar scenes
Title: The Dunerunner
Rating: 5.625
Filesize: 486.18 kB
Downloads: 3379
Comments: 0
Ratings: 2
Date added: 2023/07/16 11:23:32
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Average Ccerish House
Rating: 5
Filesize: 208.99 kB
Downloads: 4759
Comments: 0
Ratings: 1
Date added: 2023/02/20 05:52:13
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Average Skin Color (United States)
Rating: 5
Filesize: 67.31 kB
Downloads: 2467
Comments: 0
Ratings: 1
Date added: 2021/07/23 02:15:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Deadly Country Survival Marble Race (READ DESC)
Rating: 5
Filesize: 4.4 MB
Downloads: 626
Comments: 0
Ratings: 1
Date added: 2025/10/18 09:01:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PINBALL MACHINE - AUTOMATIC VERSION.
Rating: 5.625
Filesize: 0.82 MB
Downloads: 2367
Comments: 6
Ratings: 2
Date added: 2012/09/22 05:08:16
Made with: Algodoo v2.0.2
Rating: rated 5.6
download
Title: C.W.I.T 1.1 (no error)
Rating: 5
Filesize: 41.46 kB
Downloads: 507
Comments: 1
Ratings: 1
Date added: 2009/05/01 20:32:03
Made with: Phun
Rating: rated 5
download
In case you didn't know, Algodoo has an intrinsic (built-in) Linear Interpolation function called "lerp". Its syntax is as follows:


Lerp = (a,b,t) => { (1-t) * a + t * b }

Where, a = min value, b = max value, t = interpolation point

This is how it works:
The Lerp calculation returns a value from a known range, which is specified using a minimum and maximum value (a & b). For example, a range of 0-100.
The value that’s returned is defined by a third value, the interpolation point (t) which returns a point on the scale between a and b.
The interpolation point that’s passed in is a float value between 0 and 1. Essentially, acting as a percentage between a and b.
For example…
An interpolation point of 0 (0%) would return the minimum value (in this case also 0) while an interpolation point of 0.5 (50%) would return a value halfway between the minimum and maximum value (in this case, 50).
Last edited at 2024/04/08 17:18:56 by Xray
Amazing scene!!!:tup:

math is my favorite subject, and all these scripts were really creative! I forgot about the (min .. max) syntax or indexing a list by a list... :)
@Xray I kinda forgot about Lerp() when making the List Interpolation... List Interpolation expands lists with interpolation(in an inefficient way)(if you didn't know)

Also, that doesn't mean I didn't use lerp(). For creating the graph objects, I used lerp().

@42flowermaster - Thanks!:)