Add transformation from distances into gaussian distribution
This commit is contained in:
parent
62726df278
commit
7f0da894fa
5
prototorch/functions/transform.py
Normal file
5
prototorch/functions/transform.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import torch
|
||||||
|
|
||||||
|
|
||||||
|
def gaussian(distance, variance):
|
||||||
|
return torch.exp(-(distance * distance) / (2 * variance))
|
Loading…
Reference in New Issue
Block a user