| 
           SpikeInference  
         | 
        Quantifying uncertainty for spikes estimated from calcium imaging data  | 
      
        
        | 
           construct_v()  
         | 
        Generate the contrast vector for testing the null hypothesis of interest.
See Section 2 of Chen et al. (2021+) for details.  | 
      
        
        | 
           estimate_spike_by_firing_rate()  
         | 
        Search for the right tuning parameter lambda to meet the target firing rate  | 
      
        
        | 
           plot(<simdata>)  
         | 
        Plot simulated data  | 
      
        
        | 
           plot(<spike_estimates>)  
         | 
        Plot the solution to an L0 segmentation problem  | 
      
        
        | 
           plot(<spike_inference>)  
         | 
        Plot the result of quantifying the uncertainty of spikes estimated via an L0 penalty  | 
      
        
        | 
           print(<simdata>)  
         | 
        Print simulated data  | 
      
        
        | 
           simulate_ar1()  
         | 
        Simulate fluorescence trace based on a simple AR-1 generative model  | 
      
        
        | 
           spike_estimates()  
         | 
        Estimate spikes with an L0 penalty  | 
      
        
        | 
           spike_inference()  
         | 
        Estimation and inference for AR-1 spike problem using an L0 penalty  | 
      
        
        | 
           summary(<spike_estimates>)  
         | 
        Summarize the solution to an L0 segmentation problem  | 
      
        
        | 
           summary(<spike_inference>)  
         | 
        Summarize the inference result for spikes estimated via an L0 inference problem  |