Regular
This commit is contained in:
		@ -146,7 +146,7 @@ def exponential(seq, lmdks, epsilon):
 | 
			
		||||
  # Otherwise
 | 
			
		||||
  bgts = np.zeros([len(seq)])
 | 
			
		||||
  if len(seq) != len(lmdks):
 | 
			
		||||
    # Find worst case regural point
 | 
			
		||||
    # Find worst case regular point
 | 
			
		||||
    p_sel = 0
 | 
			
		||||
    for p in seq:
 | 
			
		||||
      if not np.any(lmdks[:] == p):
 | 
			
		||||
@ -190,7 +190,7 @@ def linear_zero(seq, lmdks, epsilon):
 | 
			
		||||
      bgts - The privacy budget allocation.
 | 
			
		||||
  '''
 | 
			
		||||
  bgts = np.zeros([len(seq)])
 | 
			
		||||
  # Find worst case regural point
 | 
			
		||||
  # Find worst case regular point
 | 
			
		||||
  p_sel = 0
 | 
			
		||||
  for p in seq:
 | 
			
		||||
    if not np.any(lmdks[:] == p):
 | 
			
		||||
@ -227,7 +227,7 @@ def linear(seq, lmdks, epsilon):
 | 
			
		||||
  # Fallback to uniform if zero or max landmarks
 | 
			
		||||
  if len(lmdks) == 0 or len(lmdks) == len(seq):
 | 
			
		||||
    return uniform(seq, lmdks, epsilon)
 | 
			
		||||
  # Find worst case regural point
 | 
			
		||||
  # Find worst case regular point
 | 
			
		||||
  p_sel = 0
 | 
			
		||||
  for p in seq:
 | 
			
		||||
    if not np.any(lmdks[:] == p):
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user