fixed entanglement math
This commit is contained in:
@@ -602,6 +602,20 @@ class KfSinusoidalGetAmplitude:
|
||||
|
||||
##################################################################
|
||||
|
||||
|
||||
# KfScheduleConditions:
|
||||
# """
|
||||
# Carry curve and cond together for Simplicity
|
||||
# """
|
||||
# CATEGORY = CATEGORY
|
||||
# FUNCTION = "main"
|
||||
# RETURN_TYPES = ("COND_SCHEDULE",)
|
||||
|
||||
|
||||
# KfCombineWeightedConditions:
|
||||
|
||||
##################################################################
|
||||
|
||||
# TODO: 0-1 curves (low frequency oscillators)
|
||||
# --> "1-X" operator
|
||||
|
||||
|
||||
+7
-2
@@ -8,9 +8,14 @@ class KfSinusoidalEntangledZeroOne:
|
||||
#RETURN_TYPES = ("KEYFRAMED_CURVE", "SINUSOIDAL_CURVE")
|
||||
|
||||
def main(self, n, **kargs):
|
||||
tau = np.pi / 2
|
||||
tau = 2*np.pi
|
||||
floor=.001 # fully zeroing out conditions creates "sharp edges" in the traversal
|
||||
a = 1/n
|
||||
return [a+kf.SinusoidalCurve(phase=i/tau, amplitude=a, **kargs) for i in range(n)]
|
||||
amplitude = a - floor/2
|
||||
|
||||
|
||||
#return [a+kf.SinusoidalCurve(phase=i/tau, amplitude=a, **kargs) for i in range(n)]
|
||||
return [amplitude+kf.SinusoidalCurve(phase=tau*(n-i-1)/n, amplitude=amplitude, **kargs) for i in range(n)]
|
||||
|
||||
|
||||
class KfSinusoidalEntangledZeroOneFromWavelength(KfSinusoidalEntangledZeroOne):
|
||||
|
||||
Reference in New Issue
Block a user