Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getJQueryEvents(selector){ | |
var elements = $(selector); | |
for(var key=0; key<elements.length; key++){ | |
var eventsOn = jQuery.cache[ elements[key][ jQuery.expando ] ].events; | |
for(var i in eventsOn ) { | |
var events = eventsOn[i]; | |
console.log("Event:"+i+"{"); | |
for(var j=0; j<events.length; j++) { | |
console.log(" " + j + ":" + events[j].handler.toString()); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scipy.stats import chi2 | |
def chi2_test_for_dice(observations): | |
# Рассчет количества граней и общего числа бросков | |
num_faces = len(observations) | |
total_throws = sum(observations) | |
# Ожидаемые частоты (равномерное распределение) | |
expected_frequencies = [total_throws/num_faces] * num_faces |