MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / inverse_pivot_based_mapping1

Function inverse_pivot_based_mapping1

join/Pexeso/Pivot_Metric.py:111–122  ·  view source on GitHub ↗
(d, pivots)

Source from the content-addressed store, hash-verified

109 return xys
110
111def inverse_pivot_based_mapping1(d, pivots):
112 xy = []
113 x = (9+d[0]**2-d[1]**2)/6
114 print(x)
115 xy.append(x)
116 t = d[0]**2-x**2
117 if t >= 0:
118 y = math.sqrt(t)
119 else:
120 y = -1
121 xy.append(y)
122 return xy
123
124
125def pivot_filtering(q, x, r):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected