DataSet Construction and Peaksigmoid: Difference between pages

From Eigenvector Research Documentation Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Mathias
 
imported>Mathias
 
Line 1: Line 1:
==Getting Started==
===Purpose===
In general, data is stored in a dataset object.
Outputs a sigmoid function.




===Synopsis===


:[y,y1,y2] = peaksigmoid(x,ax)




==From a GUI==
===Inputs===


Using PLS_Toolbox and Solo, it is easy to import data into a dataset object using the data importer. From the workspace browser select File/Import Data to launch the GUI.
* '''x''' = 3 element vector where
:* x(1) = coefficient
:* x(2) = offset
:* x(3) = decay constant


==From the MATLAB Command Line==
===Outputs===




From the command line, the easiest way to create a dataset is to pass an array to the dataset function.  First we will create an array of data to be passed to the dataset function. 


<pre>
>> t    = [0:0.1:10]';
>> x    = [cos(t) sin(t) exp(-t)];
>> data = dataset(x)
data =
      name: x
      type: data
      date: 23-May-2016 11:24:53
    moddate: 23-May-2016 11:24:53
      data: 101x3 [double]
      label: {2x1} [array (char)]
              Mode 1  [: ]
              Mode 2  [: ]
  axisscale: {2x1} [vector (real)] (axistype)
              Mode 1  [: ] (none)
              Mode 2  [: ] (none)
      title: {2x1} [vector (char)]
              Mode 1  [: ]
              Mode 2  [: ]
      class: {2x1} [vector (double)]
              Mode 1  [: ]
              Mode 2  [: ]
    classid: {2x1} [cell of strings]
    include: {2x1} [vector (integer)]
              Mode 1  [: 1x101]
              Mode 2  [: 1x3] 
    history: {1x1 cell} [array (char)]
      OTHER: [View Class Summary]
</pre>


Alternatively we could start with an empty dataset and assign the the array x to its data field.
<math>\sqrt{1-e^2}</math>


<pre>
<math>f\left( {{a}_{i}},\mathbf{x} \right)={{x}_{1}}\left[ {{x}_{4}}{{\operatorname{e}}^{\frac{-4\ln \left( 2 \right){{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}}{x_{3}^{2}}}}+\left( 1-{{x}_{4}} \right)\left[ \frac{x_{3}^{2}}{{{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}+x_{3}^{2}} \right] \right]</math>
newdata = dataset;
newdata.data = x;
</pre>


Similarly we may set the other fields of the dataset object individually.


<pre>
<math>f\left( {{a}_{i}},\mathbf{x} \right)={{x}_{1}}\left[ {{x}_{4}}{{\operatorname{e}}^{\frac{-4\ln \left( 2 \right){{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}}{x_{3}^{2}}}}+\left( 1-{{x}_{4}} \right)\left[ \frac{x_{3}^{2}}{{{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}+x_{3}^{2}} \right] \right]</math>
vars = {'cos(t)';'sin(t)';'exp(-t)'};
newdata.author  = 'Data Manager';        %sets the author field
newdata.label{2} = vars;                  %sets the labels for columns = dimension 2
newdata.labelname{2} = 'Variables';      %sets the name of the label for columns
newdata.axisscale{1} = t;                %sets the axis scale for rows = dimension 1
newdata.axisscalename{1} = 'Time';        %sets the name of the axis scale for rows
newdata.title{1}         = 'Time (s)';    %sets the title for rows
newdata.titlename{1}     = 'Time Axis';  %sets the titlename for rows
newdata.title{2} = 'f(t)';                %sets the title for columns
newdata.titlename{2} = 'Functions';      %sets the titlename for columns
</pre>


==Exporting Dataset to desired format==
 
 
<math>f\left( {{a}_{i}},\mathbf{x} \right)={{x}_{1}}\left[ {}+\left( 1-{{x}_{4}} \right)\left[ \frac{1-x_{3}^{2}}{{{\left( \right)}+x_{3}^{2}} \right] \right]</math>
 
* '''y(1) ''' =  
 
* '''y(2)  '''  = <math>{\operatorname{d}\!y\over\operatorname{d}\!{x}_{i}}</math>
 
* ''' y(3)  '''  = <math>{\operatorname{d^2}\!y\over\operatorname{d}\!{{x}_{i}}^{2}}</math>

Revision as of 11:23, 4 August 2016

Purpose

Outputs a sigmoid function.


Synopsis

[y,y1,y2] = peaksigmoid(x,ax)


Inputs

  • x = 3 element vector where
  • x(1) = coefficient
  • x(2) = offset
  • x(3) = decay constant

Outputs



Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle f\left( {{a}_{i}},\mathbf{x} \right)={{x}_{1}}\left[ {}+\left( 1-{{x}_{4}} \right)\left[ \frac{1-x_{3}^{2}}{{{\left( \right)}+x_{3}^{2}} \right] \right]}

  • y(1) =
  • y(2) =
  • y(3) =