Ignore:
Timestamp:
08/13/15 12:51:47 (9 months ago)
Author:
mmckerns
Message:

normalize with prior behavior, with Ln-norm included; default mass from 1 to L2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/tests/test_dirac_measure.py

    r776 r821  
    4646  if disp: print "weights (when normalized to 0.0): %s" % weights 
    4747  assert almostEqual(sum(weights), 0.0, tol=1e-15) 
    48   weights = normalize(wts) 
     48  weights = normalize(wts, 1.0) 
    4949  assert almostEqual(sum(weights), 1.0, tol=1e-15) 
    5050  if disp: print "weights (when normalized to 1.0): %s" % weights 
Note: See TracChangeset for help on using the changeset viewer.