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

Function inverse_pivot_based_mapping

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

Source from the content-addressed store, hash-verified

100
101
102def inverse_pivot_based_mapping(d, pivots):
103 xys = []
104 for i in range(len(d)):
105 xy = []
106 for j in range(len(pivots[i])):
107 xy.append(pivots[i][j] + math.sqrt(d[i]**2 / 2))
108 xys.append(xy)
109 return xys
110
111def inverse_pivot_based_mapping1(d, pivots):
112 xy = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected