Looks like source is here
http://www.reinin.ru/js/all.js
I'll save the script. I do not know much javascript I could analyze it later... some day.
The calculator does quite fancy stuff.
PHP Code:
getReininMatrix = ->
# Матрица из -1 и 1.
# Строки соответствуют дихотомиям, столбцы -- ТИМам.
# Строк всего 15, столбцов -- 16.
# Каждая строка задаёт распределение вероятности соответствующей дихотомии на множестве по ТИМов.
# Таким образом, применив эту матрицу к 16-мерному вектору,
# дающему распределение вероятности на множестве ТИМов,
# мы получим соответствующее этому вектору распределение вероятности на множестве дихотомий
# (т.е. вводные данные теста Рейнина), с точностью то преобразования (x-1)*2.
# Матрица становится ортогональной после деления на 4 (т.е. для её обращения надо
# транспонированную матрицу поделить на 16).
# Matrix of -1 and 1.
# Rows correspond to dichotomies, columns to TIMs.
# There are only 15 rows, 16 columns.
# Each line specifies the probability distribution of the corresponding dichotomy on the set of TIMs.
# So, applying this matrix to a 16-dimensional vector,
# giving the probability distribution on the set of TIMs,
# we get the probability distribution corresponding to this vector on the set of dichotomies
# (i.e. the input to the Reinin test), with the conversion precision (x-1) * 2.
# Matrix becomes orthogonal after division by 4 (i.e.
# divide the transposed matrix by 16
I converted it to coffee script.