def calculate_state_radii_fluctuations(state_list, inbox=True, fullinbox=True,<EOL>inboxrad=False, maxdisp=<NUM_LIT>, threshold=None, return_all=False):
pos, rad = [], []<EOL>for s in state_list:<EOL><INDENT>m = analyze.good_particles(s, inbox=inbox, inboxrad=inboxrad,<EOL>fullinbox=fullinbox)<EOL>pos.append(s.obj_get_positions()[m])<EOL>rad.append(s.obj_get_radii()[m])<EOL><DEDENT>df = track(pos, rad, maxdisp=maxdisp, threshold=threshold)<EOL>zyxr_t = []<EOL>for i in np.unique(df['<STR_LIT>']):<EOL><INDENT>x,y,z,r = get_xyzr_t(df, <NUM_LIT:1>*i)<EOL>if z.size > <NUM_LIT:1>:<EOL><INDENT>zyxr_t.append([x.mean(), y.mean(), z.mean(), r.mean(), r.std()])<EOL><DEDENT><DEDENT>z, y, x, rm, rs = np.transpose(zyxr_t)<EOL>if return_all:<EOL><INDENT>return z, y, x, rm, rs<EOL><DEDENT>else:<EOL><INDENT>return rs<EOL><DEDENT>
Calculates the radii fluctuations throughout a series of images.

Parameters
----------
    state_list : iterable
        List or any iterator/generator of peri.states objects to analyze.

    inbox : Bool
        Set to False to include all particles, not just the ones in the
        image. Default is True (only particles in image).
    fullinbox : Bool
        Set to True to only include particles which are
    inboxrad : Bool
        Set to True to include all particles which overlap at all with the
        image. Default False

    maxdisp : Float
        The maximum displacement a particle can do between frames.
    threshold : Int
        Threshold for trackpy.filter_stubs

    return_all : Bool
        Set to True to return the mean z,y,x,r for all the particles
        as well as r.std(). Default is False (just returns r.std()

Returns
-------
    [z,] : np.ndarray
        The mean z-positions of each particle. Returned if `return_all`
        is True.
    [y,] : np.ndarray
        The mean y-positions of each particle. Returned if `return_all`
        is True.
    [x,] : np.ndarray
        The mean x-positions of each particle. Returned if `return_all`
        is True.
    [rm,] : np.ndarray
        The mean radii of each particle. Returned if `return_all` is
        True.
    rs : np.ndarray
        The standard deviation of each particle's radius across all
        states.