{% extends "base_analyze.html" %} {% set active_page = 'statistics' %} {% block head %} {% endblock %} {% block title %}statistics{% endblock %} {% block options %}
Select a File {% if labels|len > 0 %}
{%- endif %}
{% for fileID, label in labels.items() %}
{%- endfor %} {% if labels|len == 0 %} No Documents are Selected {%- endif %}
{% endblock %} {% block results %} {% if FileInfoDict %}
Statistics for Entire Corpus {% if corpusInfoDict %}

Average File Size: {{ corpusInfoDict['average'] }}

Median File Size: {{ corpusInfoDict['median'] }}

{% if corpusInfoDict['fileanomalyStdE'] == {} %} No anomalies found using Standard Error test. {% else %} Anomalies found using Standard Error test: {% for key in corpusInfoDict['fileanomalyStdE'] %} {{key}} is {{ corpusInfoDict['fileanomalyStdE'][key] }} {% endfor %} {% endif %}

{% endif %}
Statistics for Each Document {% for file in FileInfoDict %} {% endfor %}
Document Name Number of Distinct Terms Number of {% if token == 'word' %} Words {% elif token == 'char' %} Characters {% endif %} Occurring Once Total Term Count Average Term Frequency
{{ file[1].name }} {{ file[1].numUniqueWords }} {{ file[1].Hapax }} {{ file[1].totalwordCount }} {{ file[1].average }}
{% endif %} {% endblock %}