Class: DoubleStatList

Inherits:
StatList show all
Includes:
DDescriptive
Defined in:
lib/colt/stat_list.rb

Instance Attribute Summary

Attributes inherited from StatList

#array_list

Instance Method Summary collapse

Methods included from DDescriptive

#auto_correlation, #correlation, #covariance, #durbin_watson, #frequencies, #geometric_mean, #harmonic_mean, #kurtosis, #lag1, #list_size, #max, #mean, #mean_deviation, #median, #min, #moment, #moment3, #moment4, #pooled_mean, #pooled_variance, #product, #quantile, #quantile_inverse, #quantiles, #rank_interpolated, #reset_statistics, #rms, #sample_covariance, #sample_kurtosis, #sample_kurtosis_standard_error, #sample_skew, #sample_skew_standard_error, #sample_standard_deviation, #sample_variance, #sample_weighted_variance, #skew, #sort, #sorted_data, #split, #standard_deviation, #standard_error, #standardize!, #sum, #sum_of_inversions, #sum_of_logarithms, #sum_of_power_deviations, #sum_of_powers, #sum_of_squared_deviations, #sum_of_squares, #trimmed_mean, #variance, #weighted_mean, #weighted_rms, #weighted_sums, #winsorized_mean

Methods inherited from StatList

#add, #before_insert, #binary_search, #copy, #elements, #get, #index_of, #last_index_of, #print, #reverse, #set, #shuffle, #to_s, #trim_to_size

Constructor Details

#initialize(value = nil) ⇒ DoubleStatList




178
179
180
181
182
183
184
185
186
187
188
189
190
# File 'lib/colt/stat_list.rb', line 178

def initialize(value = nil)

  super(value)

  if (value == nil)
    @array_list = Java::CernColtListTdouble::DoubleArrayList.new()
  elsif (value.is_a? Integer)
    @array_list = Java::CernColtListTdouble::DoubleArrayList.new(value)
  else # Receiving a DoubleArrayList
    @array_list = value
  end

end