Skip to content
Snippets Groups Projects

Main

Merged Leon Müller requested to merge main into markus
9 files
+ 578
157
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 8
2
import math
import math, random
def percentile(data, perc: int):
size = len(data)
return sorted(data)[int(math.ceil((size * perc) / 100)) - 1]
\ No newline at end of file
return sorted(data)[int(math.ceil((size * perc) / 100)) - 1]
def lerp(lo, hi, t):
return lo * (1 - t) + hi * t
def smoothstep(t):
return t * t * (3 - 2 * t)
Loading