Haven't found the definition of "injectnoise()"
Closed this issue · 2 comments
Hi, I'm new to Julia and I noticed that injectnoise() was used without exactly defined.
All I found throughout the codes with the "injectnoise" are only two lines:L311,L325
t2vec/preprocessing/SpatialRegionTools.jl
Lines 309 to 325 in d09f17c
The code works, so I must have some misunderstanding there.
Could anyone tell me where I am wrong?
injectnoise
is an argument of createTrainVal
, i.e., it is a variable and can be any function you pass to createTrainVal
. For example, the call createTrainVal(region, "porto.h5", downsampling, 50, 10)
instantiates injectnoise
to be downsampling
which is defined here.
Thanks for your quick reply! I just realized what a simply question I asked. Thx!