<commit_before>
require 'minitest/autorun'

require_relative '../lib/distribution'

class TestTlDsitribution < MiniTest::Unit::TestCase

	def setup
		@d = Distribution::T.new(x:[1,2,3,4],nu:2)
	end

  def test_results
      assert_equal @d.pdf, GSL::Vector.alloc([0.192, 0.068, 0.027, 0.013])
      assert_equal @d.cdf, GSL::Vector.alloc([0.789, 0.908, 0.952, 0.971])
  end  
end<commit_msg>test for t distribution cdf with lower tail<commit_after>
require 'minitest/autorun'

require_relative '../lib/distribution'

class TestTlDsitribution < MiniTest::Unit::TestCase

	def setup
		@d = Distribution::T.new(x:[1,2,3,4],nu:2)
	end

  def test_results
      assert_equal @d.pdf, GSL::Vector.alloc([0.192, 0.068, 0.027, 0.013])
      assert_equal @d.cdf, GSL::Vector.alloc([0.789, 0.908, 0.952, 0.971])
      assert_equal @d.cdf(false), GSL::Vector.alloc([0.211, 0.092, 0.048, 0.029])
  end  
end
{'fraction_non_alphanumeric': 0.16890380313199105, 'fraction_numerical': 0.10067114093959731, 'mean_word_length': 4.14367816091954, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7436726', 'n_tokens_mistral': 424, 'n_tokens_neox': 360, 'n_words': 70}