i think part of my problem (why i'm not always getting win), is that i do not guarantee that the simplex contains the point (especially with the random clounds; i think that the connectivity-based lookup is doing that fine
This commit is contained in:
+3
-1
@@ -111,8 +111,10 @@ def run_baker(X, R, S):
|
||||
S = extra points
|
||||
"""
|
||||
|
||||
# calculate values only for the triangle
|
||||
# calculate values only for the simplex triangle
|
||||
phi, qlin = qlinear(X, R)
|
||||
if [i for i in phi if i <= 0.0]:
|
||||
print "failure"
|
||||
|
||||
if len(S.points) == 0:
|
||||
answer = {
|
||||
|
||||
Reference in New Issue
Block a user