GranulationKernel¶
- class vspec_vsm.GranulationKernel(scale, period)¶
Bases:
KernelGP Kernel to describe Granulation
- Parameters:
Notes
This kernel is based on [1].
References
[1]Gordon, T. A., Agol, E., & Foreman-Mackey, D. 2020, AJ, 160, 240
Methods
__call__(X1[, X2])Call self as a function.
evaluate(X1, X2)Evaluate the kernel at a pair of input coordinates
evaluate_diag(X)Evaluate the kernel on its diagonal
matmul
Methods Summary
evaluate(X1, X2)Evaluate the kernel at a pair of input coordinates
Methods Documentation
- evaluate(X1, X2)¶
Evaluate the kernel at a pair of input coordinates
This should be overridden be subclasses to return the kernel-specific value. Two things to note:
Users shouldn’t generally call
Kernel.evaluate(). Instead, always “call” the kernel instance directly; for example, you can evaluate the Matern-3/2 kernel usingMatern32(1.5)(x1, x2), for arrays of input coordinatesx1andx2.When implementing a custom kernel, this method should treat
X1andX2as single datapoints. In other words, these inputs will typically either be scalars of have shapen_dim, wheren_dimis the number of input dimensions, rather thann_dataor(n_data, n_dim), and you should let theKernelvmapmagic handle all the broadcasting for you.