text: /******************************************************************************\
  * Author: Matthew Beauregard Smith                                             *
  * Affiliation: The University of Texas at Austin                               *
  * Department: Oden Institute and Institute for Cellular and Molecular Biology  *
  * PI: Edward Marcotte                                                          *
  * Project: Protein Fluorosequencing                                            *
  \******************************************************************************/
  
  // Defining symbols from header:
  #include "bleach-transition.h"
  
  // Local project headers:
  #include "hmm/fit/error-model-fitter.h"
  #include "hmm/state-vector/peptide-state-vector.h"
  #include "hmm/step/binomial-transition.h"
  
  namespace whatprot {
  
  BleachTransition::BleachTransition(double q, int channel)
          : BinomialTransition(q, channel) {}
  
  void BleachTransition::improve_fit(const PeptideStateVector& forward_psv,
                                     const PeptideStateVector& backward_psv,
                                     const PeptideStateVector& next_backward_psv,
                                     int num_edmans,
                                     double probability,
                                     ErrorModelFitter* fitter) const {
      BinomialTransition::improve_fit(forward_psv,
                                      backward_psv,
                                      next_backward_psv,
                                      num_edmans,
                                      probability,
                                      &fitter->p_bleach_fit);
  }
  
  }  // namespace whatprot
  