Changes between Version 19 and Version 20 of u/erica/scratch


Ignore:
Timestamp:
02/08/16 12:25:47 (9 years ago)
Author:
Erica Kaminski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • u/erica/scratch

    v19 v20  
    99So given these 2 constraints, we have the following equation,
    1010
    11 [[latex($E_{acc} = \sum_{i=0}^{4} k(~e^{-dx*i} - e^{-4dx} )~E_{acc}  $)]]
     11[[latex($E_{acc} = \sum_{i=0}^{N} k(~e^{-dx*i} - e^{-Ndx} )~E_{acc}  $)]]
    1212
    1313which gives the normalization constant,
    1414
    15 [[latex($ \boxed{k = \frac{1}{~\Sigma ~e^{-dx*i}-e^{-4dx}}} $)]]
     15[[latex($ \boxed{k = \frac{1}{~\Sigma ~e^{-dx*i}-e^{-Ndx}}} $)]]
    1616
    17 Note that the sum runs over cells i=0 to 1, where the '0th' cell is the cell the sink is in, and the '4th' cell is the furthest cell from the sink in the kernel, that the exponential goes to zero at this boundary, and dx*i gives a position (which here assumes the sink is at the cell center -- the actual function is described below).
     17where N is the max number of cells in the kernel. Note that the sum runs over cells i=0 to 1, where the '0th' cell is the cell the sink is in, and the '4th' cell is the furthest cell from the sink in the kernel, that the exponential goes to zero at this boundary, and dx*i gives a position (which here assumes the sink is at the cell center -- the actual function is described below).
    1818
     19
     20Now, 2 things effect the shape of this smoothing function, 1. the number of cells in the kernel, and 2. dx.
     21
     22Here is a plot showing, for dx=.1, a kernel of 4 cells (top), and a kernel of 40 cells (bottom):
     23
     24[[Image()]]
     25
     26[[Image()]]