mean_median_mode 0.1.12 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/mean_median_mode.iml +19 -0
- data/.idea/misc.xml +5 -0
- data/.idea/modules.xml +9 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +7 -0
- data/.idea/workspace.xml +432 -0
- data/lib/mean_median_mode/mean.rb +4 -7
- data/lib/mean_median_mode/median.rb +12 -9
- data/lib/mean_median_mode/mode.rb +14 -0
- data/lib/mean_median_mode/version.rb +1 -1
- metadata +11 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 846bbe323e36c9f20da89f5836fc9391f6f22f87
|
4
|
+
data.tar.gz: 39e78a5f2da83d91f67a6e196e9ae92e719bcbcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af4cabc7a8701e5afd157ef17e3553cc8ffd9535f4414223c028096006f108d07996f8f910e415937fdf0ae9d7532e7e74e2a86fb940a8026e2296b5ee1e496a
|
7
|
+
data.tar.gz: 6281fb038bfd2892e7077102c5030586d5cde25c5245aa25a22c11c5fc4e7df5456942a052d50000b860a9e7b5513cc0998db76fedecb7feb88a19da27619093
|
data/.idea/.name
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
mean_median_mode
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build mean_median_mode-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install mean_median_mode-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.0 and build and push mean_median_mode-0.1.0.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/.idea/encodings.xml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="NewModuleRootManager">
|
13
|
+
<content url="file://$MODULE_DIR$" />
|
14
|
+
<orderEntry type="inheritedJdk" />
|
15
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-1.9.3-p385) [gem]" level="application" />
|
17
|
+
</component>
|
18
|
+
</module>
|
19
|
+
|
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/mean_median_mode.iml" filepath="$PROJECT_DIR$/.idea/mean_median_mode.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
9
|
+
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,432 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="8dfbd447-f655-47b7-9574-4d09de66cb69" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mean_median_mode/mean.rb" afterPath="$PROJECT_DIR$/lib/mean_median_mode/mean.rb" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mean_median_mode/median.rb" afterPath="$PROJECT_DIR$/lib/mean_median_mode/median.rb" />
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/mean_median_mode/version.rb" afterPath="$PROJECT_DIR$/lib/mean_median_mode/version.rb" />
|
8
|
+
</list>
|
9
|
+
<ignored path="mean_median_mode.iws" />
|
10
|
+
<ignored path=".idea/workspace.xml" />
|
11
|
+
<file path="/Dummy.txt" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434347888483" ignored="false" />
|
12
|
+
<file path="/mean_median_mode.gemspec" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434091466624" ignored="false" />
|
13
|
+
<file path="/mean_median_mode.rb" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434111641707" ignored="false" />
|
14
|
+
<file path="/mean.rb" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434115096296" ignored="false" />
|
15
|
+
<file path="$PROJECT_DIR$/../../test_my_first_gem/Gemfile" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434114696131" ignored="false" />
|
16
|
+
<file path="$PROJECT_DIR$/../../test_my_first_gem/app/views/site/index.html.erb" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434114829989" ignored="false" />
|
17
|
+
<file path="/index.html.erb" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434114576115" ignored="false" />
|
18
|
+
<file path="/median.rb" changelist="8dfbd447-f655-47b7-9574-4d09de66cb69" time="1434111385443" ignored="false" />
|
19
|
+
<option name="TRACKING_ENABLED" value="true" />
|
20
|
+
<option name="SHOW_DIALOG" value="false" />
|
21
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
22
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
23
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
24
|
+
</component>
|
25
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
26
|
+
<component name="CreatePatchCommitExecutor">
|
27
|
+
<option name="PATCH_PATH" value="" />
|
28
|
+
</component>
|
29
|
+
<component name="DaemonCodeAnalyzer">
|
30
|
+
<disable_hints />
|
31
|
+
</component>
|
32
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
33
|
+
<component name="FavoritesManager">
|
34
|
+
<favorites_list name="mean_median_mode" />
|
35
|
+
</component>
|
36
|
+
<component name="FileEditorManager">
|
37
|
+
<leaf>
|
38
|
+
<file leaf-file-name="mean_median_mode.rb" pinned="false" current="false" current-in-tab="false">
|
39
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode.rb">
|
40
|
+
<provider selected="true" editor-type-id="text-editor">
|
41
|
+
<state line="13" column="22" selection-start="333" selection-end="333" vertical-scroll-proportion="0.0">
|
42
|
+
<folding />
|
43
|
+
</state>
|
44
|
+
</provider>
|
45
|
+
</entry>
|
46
|
+
</file>
|
47
|
+
<file leaf-file-name="median.rb" pinned="false" current="false" current-in-tab="false">
|
48
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/median.rb">
|
49
|
+
<provider selected="true" editor-type-id="text-editor">
|
50
|
+
<state line="14" column="11" selection-start="363" selection-end="363" vertical-scroll-proportion="0.0">
|
51
|
+
<folding />
|
52
|
+
</state>
|
53
|
+
</provider>
|
54
|
+
</entry>
|
55
|
+
</file>
|
56
|
+
<file leaf-file-name="mode.rb" pinned="false" current="true" current-in-tab="true">
|
57
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/mode.rb">
|
58
|
+
<provider selected="true" editor-type-id="text-editor">
|
59
|
+
<state line="9" column="10" selection-start="212" selection-end="212" vertical-scroll-proportion="0.22058824">
|
60
|
+
<folding />
|
61
|
+
</state>
|
62
|
+
</provider>
|
63
|
+
</entry>
|
64
|
+
</file>
|
65
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
66
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/version.rb">
|
67
|
+
<provider selected="true" editor-type-id="text-editor">
|
68
|
+
<state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.0">
|
69
|
+
<folding />
|
70
|
+
</state>
|
71
|
+
</provider>
|
72
|
+
</entry>
|
73
|
+
</file>
|
74
|
+
<file leaf-file-name="mean.rb" pinned="false" current="false" current-in-tab="false">
|
75
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/mean.rb">
|
76
|
+
<provider selected="true" editor-type-id="text-editor">
|
77
|
+
<state line="1" column="13" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
|
78
|
+
<folding />
|
79
|
+
</state>
|
80
|
+
</provider>
|
81
|
+
</entry>
|
82
|
+
</file>
|
83
|
+
</leaf>
|
84
|
+
</component>
|
85
|
+
<component name="FindManager">
|
86
|
+
<FindUsagesManager>
|
87
|
+
<setting name="OPEN_NEW_TAB" value="false" />
|
88
|
+
</FindUsagesManager>
|
89
|
+
</component>
|
90
|
+
<component name="Git.Settings">
|
91
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
92
|
+
</component>
|
93
|
+
<component name="GitLogSettings">
|
94
|
+
<option name="myDateState">
|
95
|
+
<MyDateState />
|
96
|
+
</option>
|
97
|
+
</component>
|
98
|
+
<component name="IdeDocumentHistory">
|
99
|
+
<option name="changedFiles">
|
100
|
+
<list>
|
101
|
+
<option value="$PROJECT_DIR$/mean_median_mode.gemspec" />
|
102
|
+
<option value="$PROJECT_DIR$/lib/mean_median_mode.rb" />
|
103
|
+
<option value="$PROJECT_DIR$/lib/mean_median_mode/mode.rb" />
|
104
|
+
<option value="$PROJECT_DIR$/lib/mean_median_mode/median.rb" />
|
105
|
+
<option value="$PROJECT_DIR$/lib/mean_median_mode/version.rb" />
|
106
|
+
<option value="$PROJECT_DIR$/lib/mean_median_mode/mean.rb" />
|
107
|
+
</list>
|
108
|
+
</option>
|
109
|
+
</component>
|
110
|
+
<component name="ProjectFrameBounds">
|
111
|
+
<option name="x" value="65" />
|
112
|
+
<option name="y" value="24" />
|
113
|
+
<option name="width" value="1301" />
|
114
|
+
<option name="height" value="744" />
|
115
|
+
</component>
|
116
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
117
|
+
<OptionsSetting value="true" id="Add" />
|
118
|
+
<OptionsSetting value="true" id="Remove" />
|
119
|
+
<OptionsSetting value="true" id="Checkout" />
|
120
|
+
<OptionsSetting value="true" id="Update" />
|
121
|
+
<OptionsSetting value="true" id="Status" />
|
122
|
+
<OptionsSetting value="true" id="Edit" />
|
123
|
+
<ConfirmationsSetting value="1" id="Add" />
|
124
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
125
|
+
</component>
|
126
|
+
<component name="ProjectReloadState">
|
127
|
+
<option name="STATE" value="0" />
|
128
|
+
</component>
|
129
|
+
<component name="ProjectView">
|
130
|
+
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
|
131
|
+
<flattenPackages />
|
132
|
+
<showMembers />
|
133
|
+
<showModules />
|
134
|
+
<showLibraryContents />
|
135
|
+
<hideEmptyPackages />
|
136
|
+
<abbreviatePackageNames />
|
137
|
+
<autoscrollToSource />
|
138
|
+
<autoscrollFromSource />
|
139
|
+
<sortByType />
|
140
|
+
</navigator>
|
141
|
+
<panes>
|
142
|
+
<pane id="Scope" />
|
143
|
+
<pane id="ProjectPane">
|
144
|
+
<subPane>
|
145
|
+
<PATH>
|
146
|
+
<PATH_ELEMENT>
|
147
|
+
<option name="myItemId" value="mean_median_mode" />
|
148
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
149
|
+
</PATH_ELEMENT>
|
150
|
+
</PATH>
|
151
|
+
<PATH>
|
152
|
+
<PATH_ELEMENT>
|
153
|
+
<option name="myItemId" value="mean_median_mode" />
|
154
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
155
|
+
</PATH_ELEMENT>
|
156
|
+
<PATH_ELEMENT>
|
157
|
+
<option name="myItemId" value="mean_median_mode" />
|
158
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
159
|
+
</PATH_ELEMENT>
|
160
|
+
</PATH>
|
161
|
+
<PATH>
|
162
|
+
<PATH_ELEMENT>
|
163
|
+
<option name="myItemId" value="mean_median_mode" />
|
164
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
165
|
+
</PATH_ELEMENT>
|
166
|
+
<PATH_ELEMENT>
|
167
|
+
<option name="myItemId" value="mean_median_mode" />
|
168
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
169
|
+
</PATH_ELEMENT>
|
170
|
+
<PATH_ELEMENT>
|
171
|
+
<option name="myItemId" value="lib" />
|
172
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
173
|
+
</PATH_ELEMENT>
|
174
|
+
</PATH>
|
175
|
+
<PATH>
|
176
|
+
<PATH_ELEMENT>
|
177
|
+
<option name="myItemId" value="mean_median_mode" />
|
178
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
179
|
+
</PATH_ELEMENT>
|
180
|
+
<PATH_ELEMENT>
|
181
|
+
<option name="myItemId" value="mean_median_mode" />
|
182
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
183
|
+
</PATH_ELEMENT>
|
184
|
+
<PATH_ELEMENT>
|
185
|
+
<option name="myItemId" value="lib" />
|
186
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
187
|
+
</PATH_ELEMENT>
|
188
|
+
<PATH_ELEMENT>
|
189
|
+
<option name="myItemId" value="mean_median_mode" />
|
190
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
191
|
+
</PATH_ELEMENT>
|
192
|
+
</PATH>
|
193
|
+
</subPane>
|
194
|
+
</pane>
|
195
|
+
</panes>
|
196
|
+
</component>
|
197
|
+
<component name="PropertiesComponent">
|
198
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
199
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
200
|
+
</component>
|
201
|
+
<component name="RunManager">
|
202
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
203
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
204
|
+
<module name="" />
|
205
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
206
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
207
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
208
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
209
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
210
|
+
<envs />
|
211
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
212
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
213
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
214
|
+
<COVERAGE_PATTERN ENABLED="true">
|
215
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
216
|
+
</COVERAGE_PATTERN>
|
217
|
+
</EXTENSION>
|
218
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
219
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
220
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
221
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
222
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
223
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
224
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
225
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
226
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
227
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
228
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
229
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
230
|
+
<method />
|
231
|
+
</configuration>
|
232
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
233
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
234
|
+
<module name="" />
|
235
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
236
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
237
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
238
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
239
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
240
|
+
<envs />
|
241
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
242
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" />
|
243
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
244
|
+
<COVERAGE_PATTERN ENABLED="true">
|
245
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
246
|
+
</COVERAGE_PATTERN>
|
247
|
+
</EXTENSION>
|
248
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
249
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
250
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
251
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
252
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
253
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
254
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
255
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
256
|
+
<method />
|
257
|
+
</configuration>
|
258
|
+
<list size="0" />
|
259
|
+
</component>
|
260
|
+
<component name="ShelveChangesManager" show_recycled="false" />
|
261
|
+
<component name="TaskManager">
|
262
|
+
<task active="true" id="Default" summary="Default task">
|
263
|
+
<changelist id="8dfbd447-f655-47b7-9574-4d09de66cb69" name="Default" comment="" />
|
264
|
+
<created>1434090853275</created>
|
265
|
+
<updated>1434090853275</updated>
|
266
|
+
</task>
|
267
|
+
<servers />
|
268
|
+
</component>
|
269
|
+
<component name="ToolWindowManager">
|
270
|
+
<frame x="65" y="24" width="1301" height="744" extended-state="6" />
|
271
|
+
<editor active="true" />
|
272
|
+
<layout>
|
273
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
274
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
275
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
276
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
277
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25419664" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
278
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
279
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
280
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
281
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
282
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
283
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
284
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
285
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
286
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
287
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
288
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
289
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
290
|
+
</layout>
|
291
|
+
</component>
|
292
|
+
<component name="VcsContentAnnotationSettings">
|
293
|
+
<option name="myLimit" value="2678400000" />
|
294
|
+
</component>
|
295
|
+
<component name="VcsManagerConfiguration">
|
296
|
+
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
|
297
|
+
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
298
|
+
<option name="CHECK_NEW_TODO" value="true" />
|
299
|
+
<option name="myTodoPanelSettings">
|
300
|
+
<value>
|
301
|
+
<are-packages-shown value="false" />
|
302
|
+
<are-modules-shown value="false" />
|
303
|
+
<flatten-packages value="false" />
|
304
|
+
<is-autoscroll-to-source value="false" />
|
305
|
+
</value>
|
306
|
+
</option>
|
307
|
+
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
|
308
|
+
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
|
309
|
+
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
|
310
|
+
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
|
311
|
+
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
|
312
|
+
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
|
313
|
+
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
|
314
|
+
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
|
315
|
+
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
|
316
|
+
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
|
317
|
+
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
|
318
|
+
<option name="SHORT_DIFF_HORIZONTALLY" value="true" />
|
319
|
+
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
|
320
|
+
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
|
321
|
+
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
|
322
|
+
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
|
323
|
+
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
|
324
|
+
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
|
325
|
+
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
|
326
|
+
<option name="LIMIT_HISTORY" value="true" />
|
327
|
+
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
|
328
|
+
<option name="UPDATE_FILTER_SCOPE_NAME" />
|
329
|
+
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
|
330
|
+
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
|
331
|
+
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
|
332
|
+
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
|
333
|
+
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
|
334
|
+
<option name="LAST_COMMIT_MESSAGE" />
|
335
|
+
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
|
336
|
+
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
|
337
|
+
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
|
338
|
+
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
|
339
|
+
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
|
340
|
+
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
|
341
|
+
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
|
342
|
+
<option name="ACTIVE_VCS_NAME" />
|
343
|
+
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
|
344
|
+
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
|
345
|
+
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
|
346
|
+
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
|
347
|
+
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
|
348
|
+
</component>
|
349
|
+
<component name="XDebuggerManager">
|
350
|
+
<breakpoint-manager />
|
351
|
+
</component>
|
352
|
+
<component name="editorHistoryManager">
|
353
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode.rb">
|
354
|
+
<provider selected="true" editor-type-id="text-editor">
|
355
|
+
<state line="6" column="11" selection-start="148" selection-end="148" vertical-scroll-proportion="0.0">
|
356
|
+
<folding />
|
357
|
+
</state>
|
358
|
+
</provider>
|
359
|
+
</entry>
|
360
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/median.rb">
|
361
|
+
<provider selected="true" editor-type-id="text-editor">
|
362
|
+
<state line="14" column="17" selection-start="365" selection-end="365" vertical-scroll-proportion="0.0">
|
363
|
+
<folding />
|
364
|
+
</state>
|
365
|
+
</provider>
|
366
|
+
</entry>
|
367
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/version.rb">
|
368
|
+
<provider selected="true" editor-type-id="text-editor">
|
369
|
+
<state line="3" column="17" selection-start="47" selection-end="47" vertical-scroll-proportion="0.0">
|
370
|
+
<folding />
|
371
|
+
</state>
|
372
|
+
</provider>
|
373
|
+
</entry>
|
374
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/mean.rb">
|
375
|
+
<provider selected="true" editor-type-id="text-editor">
|
376
|
+
<state line="9" column="6" selection-start="214" selection-end="214" vertical-scroll-proportion="0.0">
|
377
|
+
<folding />
|
378
|
+
</state>
|
379
|
+
</provider>
|
380
|
+
</entry>
|
381
|
+
<entry file="file://$PROJECT_DIR$/mean_median_mode.gemspec">
|
382
|
+
<provider selected="true" editor-type-id="text-editor">
|
383
|
+
<state line="11" column="42" selection-start="420" selection-end="420" vertical-scroll-proportion="0.0">
|
384
|
+
<folding />
|
385
|
+
</state>
|
386
|
+
</provider>
|
387
|
+
</entry>
|
388
|
+
<entry file="file://$PROJECT_DIR$/mean_median_mode.gemspec">
|
389
|
+
<provider selected="true" editor-type-id="text-editor">
|
390
|
+
<state line="11" column="42" selection-start="420" selection-end="420" vertical-scroll-proportion="0.26960784">
|
391
|
+
<folding />
|
392
|
+
</state>
|
393
|
+
</provider>
|
394
|
+
</entry>
|
395
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode.rb">
|
396
|
+
<provider selected="true" editor-type-id="text-editor">
|
397
|
+
<state line="13" column="22" selection-start="333" selection-end="333" vertical-scroll-proportion="0.0">
|
398
|
+
<folding />
|
399
|
+
</state>
|
400
|
+
</provider>
|
401
|
+
</entry>
|
402
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/version.rb">
|
403
|
+
<provider selected="true" editor-type-id="text-editor">
|
404
|
+
<state line="1" column="18" selection-start="40" selection-end="40" vertical-scroll-proportion="0.0">
|
405
|
+
<folding />
|
406
|
+
</state>
|
407
|
+
</provider>
|
408
|
+
</entry>
|
409
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/mean.rb">
|
410
|
+
<provider selected="true" editor-type-id="text-editor">
|
411
|
+
<state line="1" column="13" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
|
412
|
+
<folding />
|
413
|
+
</state>
|
414
|
+
</provider>
|
415
|
+
</entry>
|
416
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/median.rb">
|
417
|
+
<provider selected="true" editor-type-id="text-editor">
|
418
|
+
<state line="14" column="11" selection-start="363" selection-end="363" vertical-scroll-proportion="0.0">
|
419
|
+
<folding />
|
420
|
+
</state>
|
421
|
+
</provider>
|
422
|
+
</entry>
|
423
|
+
<entry file="file://$PROJECT_DIR$/lib/mean_median_mode/mode.rb">
|
424
|
+
<provider selected="true" editor-type-id="text-editor">
|
425
|
+
<state line="9" column="10" selection-start="212" selection-end="212" vertical-scroll-proportion="0.22058824">
|
426
|
+
<folding />
|
427
|
+
</state>
|
428
|
+
</provider>
|
429
|
+
</entry>
|
430
|
+
</component>
|
431
|
+
</project>
|
432
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module MeanMedianMode
|
2
2
|
class Mean < Array
|
3
3
|
def initialize(number_array)
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
puts '*'*80
|
5
|
+
puts 'Mean called'
|
6
|
+
puts '*'*80
|
7
7
|
num_arr = number_array
|
8
8
|
total = num_arr.count
|
9
9
|
if total
|
@@ -14,11 +14,8 @@ module MeanMedianMode
|
|
14
14
|
protected
|
15
15
|
def answer_mean(total, num_arr)
|
16
16
|
sorted_array = num_arr.sort
|
17
|
-
# puts '*'*80
|
18
|
-
# puts sorted_array
|
19
|
-
# puts '*'*80
|
20
17
|
sum_of_array = sorted_array.inject{|sum,x| sum+x}
|
21
|
-
|
18
|
+
puts ans = (sum_of_array>0 && total>0) ? (sum_of_array.to_f/total.to_f) : 0
|
22
19
|
end
|
23
20
|
end
|
24
21
|
end
|
@@ -1,19 +1,22 @@
|
|
1
1
|
module MeanMedianMode
|
2
2
|
class Median < Array
|
3
3
|
def initialize(num_array)
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
puts '*'*80
|
5
|
+
puts 'Median called'
|
6
|
+
puts '*'*80
|
7
7
|
num_arr = num_array
|
8
8
|
total = num_arr.count
|
9
9
|
if total
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
if total%2==0
|
11
|
+
pos1 = num_arr[((total/2)-1)]
|
12
|
+
pos2 = num_arr[(total/2)]
|
13
|
+
puts (pos1+pos2).to_f/2
|
14
|
+
else
|
15
|
+
puts 'else'
|
16
|
+
pos = ((total+1).to_f)/2
|
17
|
+
puts num_arr[pos]
|
18
|
+
end
|
13
19
|
else
|
14
|
-
# puts '*'*80
|
15
|
-
# puts 'else called from Median'
|
16
|
-
# puts '*'*80
|
17
20
|
return 0
|
18
21
|
end
|
19
22
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module MeanMedianMode
|
2
|
+
class Mode < Array
|
3
|
+
def initialize(num_array)
|
4
|
+
puts '*'*80
|
5
|
+
puts 'Mode called'
|
6
|
+
puts '*'*80
|
7
|
+
num_arr = num_array
|
8
|
+
total = num_arr.count
|
9
|
+
ans = 0
|
10
|
+
ans = num_arr.detect{ |e| num_arr.count(e) > 1 } if total
|
11
|
+
return ans
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mean_median_mode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Helios Solutions
|
@@ -46,6 +46,15 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- .gitignore
|
49
|
+
- .idea/.name
|
50
|
+
- .idea/.rakeTasks
|
51
|
+
- .idea/encodings.xml
|
52
|
+
- .idea/mean_median_mode.iml
|
53
|
+
- .idea/misc.xml
|
54
|
+
- .idea/modules.xml
|
55
|
+
- .idea/scopes/scope_settings.xml
|
56
|
+
- .idea/vcs.xml
|
57
|
+
- .idea/workspace.xml
|
49
58
|
- .rspec
|
50
59
|
- .travis.yml
|
51
60
|
- CODE_OF_CONDUCT.md
|
@@ -58,6 +67,7 @@ files:
|
|
58
67
|
- lib/mean_median_mode.rb
|
59
68
|
- lib/mean_median_mode/mean.rb
|
60
69
|
- lib/mean_median_mode/median.rb
|
70
|
+
- lib/mean_median_mode/mode.rb
|
61
71
|
- lib/mean_median_mode/version.rb
|
62
72
|
- mean_median_mode.gemspec
|
63
73
|
homepage: http://www.heliossolutions.in/
|