<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to API basic</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520basic/</link><description>Recent changes to API basic</description><atom:link href="https://sourceforge.net/p/mathlabtool/wiki/API%20basic/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 14 Dec 2023 17:28:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mathlabtool/wiki/API%20basic/feed" rel="self" type="application/rss+xml"/><item><title>API basic modified by tanzheng</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520basic/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,3 +1,4 @@
+[Contents](https://github.com/xxyjskx1987/MathLabTool/wiki/API-Reference)
 * **mlt_page_console_log:** print log in MathLabTool's console.  
 ***ex:***

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tanzheng</dc:creator><pubDate>Thu, 14 Dec 2023 17:28:20 -0000</pubDate><guid>https://sourceforge.net280772c9696b53a663127acca543c489c77207e8</guid></item><item><title>API basic modified by tanzheng</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520basic/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -3,20 +3,6 @@

     mlt_page_console_log('Hi Code!' + '\n');
     mlt_page_console_log('Hi Code!', '\n');
-* **csv2array:** Convert csv files to arrays.  
-***param:***  
-****path:**** Path and file name.  
-****data_begin_row:**** The data is collected from the first row.  
-****data_index_col:**** What column data to collect, array type.  
-****data_struct:**** 'col': the first dimension of the array is column data, 'raw': the first dimension of the array is row data.  
-***ex:***
-
-    var csv_ret = csv2array("D:/test.csv", {
-       data_begin_row: 1,
-       data_index_col: [6, 13, 20, 27, 34],
-       data_struct: 'col'
-    });
-    mlt_page_console_log(csv_ret, '\n');
 * **mlt_get_norm_dist_box_muller:** Generate normally distributed data (box-muller).  
 ***param:***  
 ****num:**** Number of samples.  
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tanzheng</dc:creator><pubDate>Thu, 14 Dec 2023 17:28:20 -0000</pubDate><guid>https://sourceforge.net8d499b5e28ee0f76bd35b9fb9b1afd94b62fb000</guid></item><item><title>API basic modified by tanzheng</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520basic/</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;mlt_page_console_log:&lt;/strong&gt; print log in MathLabTool's console.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;ex:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;mlt_page_console_log('Hi Code!' + '\n');&lt;br/&gt;
mlt_page_console_log('Hi Code!', '\n');&lt;br/&gt;
* &lt;strong&gt;csv2array:&lt;/strong&gt; Convert csv files to arrays.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*path:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Path and file name.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;data_begin_row:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; The data is collected from the first row.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;data_index_col:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; What column data to collect, array type.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;data_struct:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; 'col': the first dimension of the array is column data, 'raw': the first dimension of the array is row data.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;var csv_ret = csv2array("D:/test.csv", {&lt;br/&gt;
    data_begin_row: 1,&lt;br/&gt;
    data_index_col: &lt;span&gt;[6, 13, 20, 27, 34]&lt;/span&gt;,&lt;br/&gt;
    data_struct: 'col'&lt;br/&gt;
});&lt;br/&gt;
mlt_page_console_log(csv_ret, '\n');&lt;br/&gt;
* &lt;strong&gt;mlt_get_norm_dist_box_muller:&lt;/strong&gt; Generate normally distributed data (box-muller).&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*num:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Number of samples.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;avg:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Average value.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;sr:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Standard deviation.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;var nd = mlt_get_norm_dist_box_muller(500, 50, 20);&lt;br/&gt;
mlt_page_console_log(nd, '\n');&lt;br/&gt;
* &lt;strong&gt;mlt_get_average_sum_max_min:&lt;/strong&gt; Generate average, quantity, maximum and minimum values.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*data:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Data to be computed, array type.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;var ret = mlt_get_average_sum_max_min(&lt;span&gt;[1, 2, 3, 4]&lt;/span&gt;);&lt;br/&gt;
mlt_page_console_log(ret, '\n');&lt;br/&gt;
* &lt;strong&gt;mlt_get_var_sr:&lt;/strong&gt; Generate the variance and the standard deviation.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*data:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Data to be computed, array type.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;avg:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Average value of data.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;var var_sr = mlt_get_var_sr(&lt;span&gt;[1, 2, 3, 4]&lt;/span&gt;, 2.5);&lt;br/&gt;
mlt_page_console_log(var_sr, '\n');&lt;br/&gt;
* &lt;strong&gt;mlt_kalman_filter:&lt;/strong&gt; Kalman filtering.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*data:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Collect data, array type.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;Q:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Q。&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;R:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; R。&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;init_P:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Initialize the P value.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;init_predict_data:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Initialize the predicted value.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;var kf = mlt_kalman_filter(&lt;span&gt;[1, 2, 5, 6]&lt;/span&gt;, 0.05, 0.08, 0, 0);&lt;br/&gt;
mlt_page_console_log(kf, '\n');&lt;br/&gt;
* &lt;strong&gt;mlt_calc_formula:&lt;/strong&gt; Calculate a custom formula.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*formula:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Custom formula.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;i_var:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Argument, array type.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;i_var_val:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Argument value, array type.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;var formula = "2 * x + (4 + x / 3 + (6 - 2 * 10 / 5) - 19) + 6 / x";&lt;br/&gt;
mlt_page_console_log(mlt_calc_formula(formula, &lt;span&gt;['x']&lt;/span&gt;, &lt;span&gt;['12']&lt;/span&gt;), '\n');&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tanzheng</dc:creator><pubDate>Thu, 14 Dec 2023 17:28:19 -0000</pubDate><guid>https://sourceforge.neta7f4ba6bbe4a82d5200e61f2ffee69d4ecdec8c8</guid></item></channel></rss>