Lines Matching defs:in
6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
27 * Implements Chi-Square test statistics defined in the
325 * @param in input 2-way table to check
328 private void checkArray(long[][] in) throws IllegalArgumentException {
330 if (in.length < 2) {
332 LocalizedFormats.INSUFFICIENT_DIMENSION, in.length, 2);
335 if (in[0].length < 2) {
337 LocalizedFormats.INSUFFICIENT_DIMENSION, in[0].length, 2);
340 checkRectangular(in);
341 checkNonNegative(in);
350 * @param in array to be tested
354 private void checkRectangular(long[][] in) {
355 for (int i = 1; i < in.length; i++) {
356 if (in[i].length != in[0].length) {
359 in[i].length, in[0].length);
367 * @param in array to be tested
370 private void checkPositive(double[] in) throws IllegalArgumentException {
371 for (int i = 0; i < in.length; i++) {
372 if (in[i] <= 0) {
375 i, in[i]);
383 * @param in array to be tested
386 private void checkNonNegative(long[] in) throws IllegalArgumentException {
387 for (int i = 0; i < in.length; i++) {
388 if (in[i] < 0) {
391 i, in[i]);
399 * @param in array to be tested
402 private void checkNonNegative(long[][] in) throws IllegalArgumentException {
403 for (int i = 0; i < in.length; i ++) {
404 for (int j = 0; j < in[i].length; j++) {
405 if (in[i][j] < 0) {
408 i, j, in[i][j]);