Use the write function from rEDM depending on the version

surrogateDataFun(...)

Arguments

...

Arguments to pass to surrogate

Value

Surrogate output