mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Sort imports
This commit is contained in:
parent
9ef9961d0e
commit
fbebaf0c75
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import math
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from manimlib.animation.animation import Animation
|
from manimlib.animation.animation import Animation
|
||||||
|
@ -220,7 +221,7 @@ class VShowPassingFlash(Animation):
|
||||||
if abs(x - mu) > 3 * sigma:
|
if abs(x - mu) > 3 * sigma:
|
||||||
return 0
|
return 0
|
||||||
z = (x - mu) / sigma
|
z = (x - mu) / sigma
|
||||||
return np.exp(-0.5 * z * z)
|
return math.exp(-0.5 * z * z)
|
||||||
|
|
||||||
kernel_array = list(map(gauss_kernel, np.linspace(0, 1, len(anchor_widths))))
|
kernel_array = list(map(gauss_kernel, np.linspace(0, 1, len(anchor_widths))))
|
||||||
scaled_widths = anchor_widths * kernel_array
|
scaled_widths = anchor_widths * kernel_array
|
||||||
|
|
Loading…
Add table
Reference in a new issue