MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TriangleKernelFunc

Class TriangleKernelFunc

tensorflow/core/kernels/sampling_kernels.h:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111};
112
113struct TriangleKernelFunc {
114 // https://en.wikipedia.org/wiki/Triangle_function
115 float operator()(float x) const {
116 x = std::abs(x);
117 return x < 1.0f ? 1.0f - x : 0.0f;
118 }
119 float Radius() const { return 1.f; }
120};
121
122struct KeysCubicKernelFunc {
123 // http://ieeexplore.ieee.org/document/1163711/

Callers 1

CreateTriangleKernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected