{"id":148,"date":"2020-12-20T14:36:18","date_gmt":"2020-12-20T14:36:18","guid":{"rendered":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/?post_type=chapter&#038;p=148"},"modified":"2020-12-21T20:23:40","modified_gmt":"2020-12-21T20:23:40","slug":"kokkuvote-numpy-uhemootmelistest-jarjenditest","status":"publish","type":"chapter","link":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/chapter\/kokkuvote-numpy-uhemootmelistest-jarjenditest\/","title":{"raw":"Kokkuv\u00f5te NumPy \u00fchem\u00f5\u00f5tmelistest j\u00e4rjenditest","rendered":"Kokkuv\u00f5te NumPy \u00fchem\u00f5\u00f5tmelistest j\u00e4rjenditest"},"content":{"raw":"Selles tabelis on peamised NumPy \u00fchem\u00f5\u00f5tmelise j\u00e4rjendi funktsioonid ja tehted, mis on kasutatud selle materjalis.\r\n<div align=\"left\">\r\n<table class=\"grid aligncenter\" style=\"border: 2px solid #ebebeb\">\r\n<tbody>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\"><\/td>\r\n<td style=\"text-align: center;vertical-align: middle;border: 2px solid #ebebeb\"><strong>NumPy lause<\/strong><\/td>\r\n<td style=\"text-align: center;vertical-align: middle;border: 2px solid #ebebeb\"><strong>V\u00e4ljund<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi loomine<\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">[1 2 3]<\/code><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi pikkuse leidmine\r\n\r\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\" data-enlighter-linenumbers=\"false\">a = np.array([1, 2, 3])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a.size<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">3<\/code><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendist elemendi v\u00f5tmine\r\n\r\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a[1]<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">2<\/code><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi suurim v\u00e4\u00e4rtus\r\n\r\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">np.amax(a)<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">3<\/code><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi v\u00e4him v\u00e4\u00e4rtus\r\n\r\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">np.amin(a)<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">1<\/code><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendisse elemendi lisamine\r\n\r\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.append(a, 4)<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">[1 2 3 4]<\/code><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi keskmise v\u00e4\u00e4rtuse leidmine\r\n\r\n<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([2, 8, 10, 6, 12])<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">np.mean(a)<\/code><\/td>\r\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">7.6<\/code><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>","rendered":"<p>Selles tabelis on peamised NumPy \u00fchem\u00f5\u00f5tmelise j\u00e4rjendi funktsioonid ja tehted, mis on kasutatud selle materjalis.<\/p>\n<div style=\"text-align: left;\">\n<table class=\"grid aligncenter\" style=\"border: 2px solid #ebebeb\">\n<tbody>\n<tr>\n<td style=\"border: 2px solid #ebebeb\"><\/td>\n<td style=\"text-align: center;vertical-align: middle;border: 2px solid #ebebeb\"><strong>NumPy lause<\/strong><\/td>\n<td style=\"text-align: center;vertical-align: middle;border: 2px solid #ebebeb\"><strong>V\u00e4ljund<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi loomine<\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">[1 2 3]<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi pikkuse leidmine<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\" data-enlighter-linenumbers=\"false\">a = np.array([1, 2, 3])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a.size<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">3<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendist elemendi v\u00f5tmine<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a[1]<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">2<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi suurim v\u00e4\u00e4rtus<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">np.amax(a)<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">3<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi v\u00e4him v\u00e4\u00e4rtus<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">np.amin(a)<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">1<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendisse elemendi lisamine<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([1, 2, 3])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.append(a, 4)<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">[1 2 3 4]<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"border: 2px solid #ebebeb\">J\u00e4rjendi keskmise v\u00e4\u00e4rtuse leidmine<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">a = np.array([2, 8, 10, 6, 12])<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">np.mean(a)<\/code><\/td>\n<td style=\"border: 2px solid #ebebeb\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"bootstrap4\">7.6<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"author":16,"menu_order":6,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-148","chapter","type-chapter","status-publish","hentry"],"part":90,"_links":{"self":[{"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/chapters\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/wp\/v2\/users\/16"}],"version-history":[{"count":2,"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/chapters\/148\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/chapters\/148\/revisions\/265"}],"part":[{"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/parts\/90"}],"metadata":[{"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/chapters\/148\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/pressbooks\/v2\/chapter-type?post=148"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/wp\/v2\/contributor?post=148"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/web.htk.tlu.ee\/digitaru\/tarkvara2\/wp-json\/wp\/v2\/license?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}