Skip to content

Draft: Correct the source of the occasional error in rendering the Discriminant Plot

When drawing the discriminant plot, a category which only has a single data point cannot be used to calculate the densities. We have one of those with "story":

categories
          analyze      characterize           comment          describe          dialogue             diary   e-mail_informal     letter_formal          magazine 
              109                 2                83                19                 4                 7                45                14                 6 
        monologue paraphrase_sonnet            speech             story         summarize 
                4                 3                 6                 1                95 

I updated the utility.R file to ignore density calculations if there is only a single data point.

Merge request reports