home *** CD-ROM | disk | FTP | other *** search
/ Freelog 65 / Freelog065.iso / BAS / Bureautique / Gnumeric / gnumeric-1.3.92-rc1.exe / data-entry-advanced.xml < prev    next >
Text File  |  2004-11-01  |  20KB  |  542 lines

  1. <sect1 id="sect-dataentryadv">
  2.   <title>Advanced Data Entry</title>
  3.  
  4.   <para>
  5.     This section describes advanced methods for data entry in
  6.     <application>Gnumeric</application>. This includes techniques
  7.     useful when adding large amounts of data, methods to automatically
  8.     catch mistakes during data entry, using pre-defined templates to
  9.     format data input, obtaining data from external sources and
  10.     generating sequences of random numbers with defined distributions.
  11.   </para>
  12.  
  13.   <sect2 id="sect-dataentryadv-large">
  14.     <title>Entering Large Quantities of Data</title>
  15.  
  16.     <para>
  17.       It is sometimes necessary to enter large amounts of data by hand
  18.       into a spreadsheet. To facilitate this work,
  19.       <application>Gnumeric</application> provides several techniques
  20.       to facilitate the entry of large amounts of data.
  21.     </para>
  22.  
  23.     <para>
  24.       If data are to be entered into a series of rows or columns, this
  25.       region can be selected ahead of time thereby modifying the
  26.       behaviour of the data entry keys (the <keysym>Enter</keysym>,
  27.       <keysym>Tab</keysym> and arrow keys).
  28.     </para>
  29.  
  30.     <procedure>
  31.       <title>Data entry into a region</title>
  32.  
  33.         <step>
  34.           <para>
  35.             Select the region with the mouse. For example, the region
  36.             from cell C4 to cell E8 can be selected by clicking with
  37.             the left mouse button on cell C4 and dragging the mouse
  38.             cursor to cell E8. (More information on complex selections
  39.             is presented below.)
  40.           </para>
  41.         </step>
  42.  
  43.         <step>
  44.           <para>
  45.             Enter data by typing the data and the the
  46.             <keysym>Enter</keysym> key. If this is done repeatedly,
  47.             the fifth time the <keysym>Enter</keysym> key is pressed,
  48.             the selection will not move to cell C9 but will jump up to
  49.             cell D4.
  50.           </para>
  51.         </step>
  52.  
  53.     </procedure>
  54.  
  55.     <note>
  56.       <para>
  57.         The <keysym>Tab</keysym> key can also be used instead of the
  58.         <keysym>Enter</keysym> key to move sequentially through the
  59.         selection.
  60.       </para>
  61.     </note>
  62.  
  63.   </sect2>
  64.  
  65.  
  66.  
  67.  
  68.   <sect2 id="sect-dataentryadv-series">
  69.     <title>Entering a Regular Sequence</title>
  70.  
  71.         <para>
  72.           It is often necessary to enter a regular sequence of numbers
  73.           or a repeated sequence of
  74.           text. <application>Gnumeric</application> provides several
  75.           ways to input series and sequences of this kind.
  76.         </para>
  77.  
  78.         <para>
  79.           The simplest way to fill a series with the same element
  80.           repeated involves entering the element once and dragging the
  81.           selection box to fill that element repeatedly. For example,
  82.           the text "employee:" could be input into cell C2. That cell
  83.           could then be selected. The selection box is a thick white
  84.           rectangle which surrounds the cell. This selection box has a
  85.           small white square at the bottom right hand corner. If the
  86.           mouse cursor is placed above this square box, it changes to
  87.           a thin cross. If the left hand mouse button is clicked and
  88.           held, and the mouse dragged to cell C10,
  89.           <application>Gnumeric</application> will automatically fill
  90.           all of the cells with the identical string.
  91.         </para>
  92.  
  93.         <para>
  94.           An alternative way to enter data into a region involves
  95.           first selecting the region, then typing the value and
  96.           finally typing the
  97.           <keycombo><keysym>Ctrl</keysym><keysym>Enter</keysym></keycombo>
  98.           key combination. This will fill the whole region with the
  99.           identical value which was originally entered.
  100.         </para>
  101.  
  102.         <para>
  103.           A similar method is available to fill sequences of
  104.           integers. If the example just given was altered so that cell
  105.           C2 had the number 14 and the <keysym>Ctrl</keysym> key was
  106.           held during the dragging of the selection,
  107.           <application>Gnumeric</application> will automatically fill
  108.           the cells C2 to C10 with the series 14,15,16,...,22.
  109.         </para>
  110.  
  111.         <para>
  112.           More complex series and sequences of data can be entered
  113.           with a similar mechanism. 
  114.         </para>
  115.  
  116.         <para>
  117.           To do an autofill:
  118.         </para>
  119.  
  120.         <procedure>
  121.     <step>
  122.       <para>
  123.         Enter a value into the first cell you wish to
  124.         autofill. For example, the cell C2 could have the number
  125.         "24" entered.
  126.       </para>
  127.     </step>
  128.  
  129.     <step>
  130.       <para>
  131.         Enter a second value into the second cell you wish to
  132.         autofill. This must be adjacent to the first cell. This
  133.         sets the increment to use when autofilling the rest of
  134.         your cells. For example, the cell D2 could have the number
  135.         "28" entered.
  136.       </para>
  137.     </step>
  138.  
  139.     <step>
  140.       <para>
  141.         Select both the cells just entered. At the bottom-right of
  142.         the selection should be a small box. Your mouse cursor
  143.         will change to a cross-hair when placed over the box.
  144.         Press and hold on the box. Drag in the direction, either
  145.         vertical or horizontal, you wish to increment and release
  146.         when all the cells are filled. For example, selecting
  147.         cells C2 and D2, then dragging the bottom right of the
  148.         selection to cell I2 will fill the cells with the sequence
  149.         from 24 to 48 with each increment being 4.
  150.       </para>
  151.     </step>
  152.         </procedure>
  153.  
  154.         <para>
  155.           An alternative to the last step involves using the
  156.           menus. Once the first two values have been input, the whole
  157.           range to be filled can be selected using the mouse and then
  158.           the <guimenuitem>Autofill</guimenuitem> selection can be
  159.           made from the <guimenu>Edit</guimenu> and
  160.           <guisubmenu>Fill</guisubmenu>. This will automatically
  161.           complete the series in the selected region.
  162.         </para>
  163.  
  164.  
  165.         <para>
  166.       <application>Gnumeric</application> is able to increment
  167.       several types of data beyond simple integers. The procedure
  168.       is the same as described above but involves different
  169.       starting values. <application>Gnumeric</application> can
  170.       increment:
  171.     <variablelist>
  172.       <varlistentry>
  173.         <term>Integers</term>
  174.         <listitem>
  175.           <para>
  176.         1, 2, 3, etc.
  177.           </para>
  178.         </listitem>
  179.       </varlistentry>
  180.       <varlistentry>
  181.         <term>Natural Numbers</term>
  182.         <listitem>
  183.           <para>
  184.         1.03, 2.05, 3.07, etc.
  185.           </para>
  186.         </listitem>
  187.       </varlistentry>
  188.       <varlistentry>
  189.         <term>Weekday Names</term>
  190.         <listitem>
  191.           <para>
  192.         Monday, Tuesday, etc.
  193.           </para>
  194.         </listitem>
  195.       </varlistentry>
  196.       <varlistentry>
  197.         <term>Weekday Abbreviations</term>
  198.         <listitem>
  199.           <para>
  200.         Mon, Tues, etc.
  201.           </para>
  202.         </listitem>
  203.       </varlistentry>
  204.       <varlistentry>
  205.         <term>Month Names</term>
  206.         <listitem>
  207.           <para>
  208.         January, February, etc.
  209.           </para>
  210.         </listitem>
  211.       </varlistentry>
  212.       <varlistentry>
  213.         <term>Month Abbreviations</term>
  214.         <listitem>
  215.           <para>
  216.         Jan, Feb, etc.
  217.           </para>
  218.         </listitem>
  219.       </varlistentry>
  220.       <varlistentry>
  221.         <term>Strings with Numbers</term>
  222.         <listitem>
  223.           <para>
  224.         Item1, Item2, etc
  225.           </para>
  226.         </listitem>
  227.       </varlistentry>
  228.       <varlistentry>
  229.         <term>Dates</term>
  230.         <listitem>
  231.           <para>
  232.         11/14/2001, 11/15/2001, etc.
  233.           </para>
  234.           <para>
  235.         <application>Gnumeric</application> supports
  236.         incrementing the date by month, date, or year.
  237.           </para>
  238.         <para>
  239.           Note that, While <application>Gnumeric</application>
  240.           will increment days of the month, if you do
  241.           11/14/2001 and 12/14/2001, it will recognize it as
  242.           the same day of the month and increment the month so
  243.           the next value would be to 1/14/2002 instead of the
  244.           day difference.
  245.         </para>
  246.         </listitem>
  247.       </varlistentry>
  248.     </variablelist>
  249.         </para>
  250.  
  251.         <para>
  252.           <application>Gnumeric</application> can be explicitly told
  253.           the cells to autofill as in the examples above, but it can
  254.           also guess the number of cells to fill based on the length
  255.           of an adjacent column or row. For example, if the cells B2
  256.           to B10 have information and cell C2 has the integer value
  257.           "1", then selecting cell C2 and double clicking on the
  258.           bottom rightmost box of the selection rectangle will fill
  259.           the value "1" from cell C3 to cell C10.
  260.         </para>
  261.  
  262.   </sect2>
  263.  
  264.  
  265.  
  266.  
  267.  
  268.   <sect2 id="sect-dataentryadv-autocorrect">
  269.     <title>Automatically Correcting Simple Mistakes</title>
  270.  
  271.     <para>
  272.       The entry of large amounts of data into a spreadsheet is tedious
  273.       work which is prone to repeated
  274.       mistakes. <application>Gnumeric</application> provides a tool to
  275.       automatically correct commonly made simple mistakes. The
  276.       corrections are configured and activated using the `AutoCorrect'
  277.       dialog, available via <guimenuitem>Auto Correct</guimenuitem> in
  278.       the <guimenu>Tools</guimenu> menu.
  279.     </para>
  280.  
  281.        <figure id="fig-autocorrect-figure">
  282.          <title>The Auto Correct dialog.</title>
  283.          <screenshot>
  284.            <mediaobject>
  285.             <imageobject>
  286.               <imagedata fileref="figures/dialog-auto-correct.png" />
  287.             </imageobject>
  288.             <textobject>
  289.               <phrase>An image of the auto-correct dialog.</phrase>
  290.             </textobject>
  291.            </mediaobject>
  292.          </screenshot>
  293.        </figure>
  294.  
  295.   <sect3 id="sect-dataentryadv-autocorrect-init-caps">
  296.      <title>Correct TWo INitial CApitals</title>
  297.  
  298.      <para>A common mistake is to hold down the shift key a little bit
  299.      too long while typing initial letters.  When it happens, you will
  300.      get two initial capitals instead of one.  If this correction rule
  301.      is activated, the second letter of words beginning with two
  302.      capital letters is automatically lowercased.  For example, if you
  303.      type `TOtal' into a cell it is replaced by `Total'.  Note that if
  304.      the word contains two capital letters only, it is not
  305.      replaced.</para>
  306.  
  307.      <para>It is possible to specify exceptions to this tool.  For
  308.      example, you do not want the tool to replace the word `PVbonds'
  309.      when it is typed.  To specify exceptions, press the
  310.      ``Exceptions...''  button in the dialog.  This should pop up the
  311.      ``Auto correct exceptions'' dialog.  In this dialog, select the
  312.      ``INitial CApitals'' page.  In this page, type `PVbonds' into the
  313.      ``Do not correct'' entry, and press ``Add'' button.  Now the word
  314.      should be included in the list of exceptions.  To remove a word
  315.      from the list, select the word and press the ``Remove'' button.
  316.      If you now press ``Ok'' the exceptions in the list are
  317.      activated.</para>
  318.  
  319.   </sect3>
  320.  
  321.   <sect3 id="sect-dataentryadv-autocorrect-first-letter">
  322.      <title>Capitalize the First Letter of Sentences</title>
  323.  
  324.      <para>If this correction rule is activated, the first letter of a
  325.      sentence typed into a cell is capitalized, if it is a lowercase
  326.      letter in the first place.  Only text that ends to a dot is
  327.      considered a sentence.</para>
  328.  
  329.      <para>It is possible to specify exceptions to this tool.  For
  330.      example, you do not want the tool to capitalize letters after
  331.      acronym `i.g.'.  To specify exceptions, press the
  332.      ``Exceptions...''  button in the dialog.  This should pop up the
  333.      ``Auto correct exceptions'' dialog.  In this dialog, select the
  334.      ``First letter'' page.  In this page, type `i.g.' into the ``Do
  335.      not capitalize after'' entry, and press ``Add'' button.  Now the
  336.      word should be included in the list of exceptions.  To remove a
  337.      word from the list, select the word and press the ``Remove''
  338.      button.  If you now press ``Ok'' the exceptions in the list are
  339.      activated.</para>
  340.  
  341.   </sect3>
  342.  
  343.   <sect3 id="sect-dataentryadv-autocorrect-cap-days">
  344.      <title>Capitalize the Names of Days</title>
  345.  
  346.      <para>If this correction rule is activated, the first letter of a
  347.      name of a day is capitalized automatically.  For example, if you
  348.      type `monday', it is automatically replaced by `Monday'.</para>
  349.   </sect3>
  350.  
  351.  
  352.   </sect2>
  353.  
  354.  
  355.  
  356.  
  357.   <sect2 id="sect-dataentryadv-templates">
  358.     <title>Using a Format Template</title>
  359.  
  360.     <para>
  361.       This section has not yet been written.
  362.     </para>
  363.  
  364.    </sect2>
  365.  
  366.  
  367.   <sect2 id="sect-dataentryadv-random">
  368.     <title>Generating Random Number Sequences</title>
  369.  
  370.   <figure id="random-tool-dialog">
  371.     <title>Random Number Generation Tool Dialog</title>
  372.     <screenshot>
  373.     <mediaobject>
  374.             <imageobject>
  375.               <imagedata fileref="figures/analysistools-random.png" 
  376.                   format="PNG" />
  377.             </imageobject>
  378.             <textobject>
  379.               <phrase>An image of the random number generation
  380.               tool.</phrase>
  381.             </textobject>
  382.            </mediaobject>
  383.     </screenshot>
  384.   </figure>
  385.  
  386.      <para>Use the random number generation tool to generate random
  387.      numbers.  This tool can generate random numbers from various
  388.      probability distributions.</para>
  389.  
  390.      <para>Specify the number of variables in the
  391.      <quote><guilabel>Number of Variables:</guilabel></quote> entry.
  392.      This determines the number of columns of random values to be
  393.      produced.</para> <para> Specify the number of random numbers for
  394.      each variable in the <quote><guilabel>Size of
  395.      Sample:</guilabel></quote> entry.  This determines the number of
  396.      rows of random values to be produced.</para> <para> Specify the
  397.      random distribution by selecting one of the items from the random
  398.      distribution list.  The following random distributions are
  399.      supported: Discrete, Normal, Poisson, Exponential, Binomial,
  400.      Negative Binomial, Bernoulli, and Uniform.</para> <para> Specify
  401.      the parameters of the selected distribution:</para>
  402.  
  403.      <variablelist>
  404.      <varlistentry><term>Discrete Random Distribution</term>
  405.      <listitem>
  406.         <para>Specify the value and probability input range in the
  407.         <quote><guilabel>Value and Probability Input
  408.         Range:</guilabel></quote> entry box.  The value and
  409.         probability input range is a table consisting of two columns
  410.         and any number of rows.  The first column specifies the
  411.         discrete random values and the second column the probabilities
  412.         for them.  The discrete random values do not have to be
  413.         numbers, for example, strings will do as well.  The sum of the
  414.         probabilities in the second column should be one.  For
  415.         example, if you have the values A, B, C, and D in A1:A4 and
  416.         values 0.1, 0.4, 0.2, and 0.3 in B1:B4, you would specify the
  417.         value and probability input range to be A1:B4.</para>
  418.  
  419.     <note><para>If the probabilities do not add to 1, they will be 
  420.     automatically scaled.</para></note>
  421.      </listitem></varlistentry>
  422.  
  423.      <varlistentry><term>Normal Random Distribution</term>
  424.      <listitem>
  425.         <para>Specify the mean and the
  426.     standard deviation.  The default values are 0 for the
  427.     mean and 1 for the standard deviation.</para>
  428.      </listitem></varlistentry>
  429.  
  430.      <varlistentry><term>Poisson Random Distribution</term>
  431.      <listitem>
  432.     <para>Specify the lambda in the
  433.     <quote><guilabel>Lambda</guilabel></quote> entry. Lambda is
  434.     the average number of events in a unit time interval.</para>
  435.     </listitem></varlistentry>
  436.  
  437.      <varlistentry><term>Exponential Random Distribution</term>
  438.      <listitem>
  439.     <para>Specify <parameter>b</parameter> in
  440.     the <quote><guilabel>b Value</guilabel></quote> entry.</para>
  441.      </listitem></varlistentry>
  442.  
  443.      <varlistentry><term>Binomial Random Distribution</term>
  444.      <listitem>
  445.     <para>Specify the
  446.     probability of success (<parameter>p</parameter>) in the 
  447.     <quote><guilabel>p Value</guilabel></quote> entry and  the
  448.     number of trials (<parameter>n</parameter>) in the 
  449.     <quote><guilabel>Number of Trials</guilabel></quote> entry.  
  450.     The Binomial
  451.     distribution is a discrete distribution in which the
  452.     experiment consists of <parameter>n</parameter> identical trials. 
  453.     Each trial is independent of other the trials
  454.     and has two possible outcomes, a success or a failure.  The
  455.     probability of success <parameter>p</parameter> is constant from 
  456.     one trial to another.
  457.     The mean of a random variable that has a Binomial distribution
  458.     is <parameter>E(X) = np</parameter>, and the variance is 
  459.     <parameter>var(X) = np(1-p)</parameter>.</para>
  460.      </listitem></varlistentry>
  461.  
  462.      <varlistentry><term>Negative Binomial Distribution</term>
  463.      <listitem>
  464.     <para>Specify the probability of success
  465.     <parameter>p</parameter> in the <quote><guilabel>p
  466.     Value</guilabel></quote> entry and the number of failures
  467.     <parameter>r</parameter> in the <quote><guilabel>Number of
  468.     Failures</guilabel></quote> entry.  Negative Binomial
  469.     distribution is a discrete distribution in which the
  470.     experiment consists of a sequence of independent trials.  Each
  471.     trial has two possible outcomes, a success or a failure.  The
  472.     probability of success <parameter>p</parameter> is constant
  473.     from one trial to another.  The experiment continues until
  474.     <parameter>r</parameter> failures are observed, where
  475.     <parameter>r</parameter> is fixed in advance.  The mean of a
  476.     random variable that has a Negative Binomial distribution is
  477.     <parameter>E(X) = r(1-p)/p</parameter>, and the variance is
  478.     <parameter>var(X) = r(1-p)/p^2</parameter>.</para>
  479.     </listitem></varlistentry>
  480.  
  481.      <varlistentry><term>Bernoulli Random Distribution</term>
  482.      <listitem>
  483.         <para>Specify the probability of success
  484.         (<parameter>p</parameter>) in the <quote><guilabel>p
  485.         Value</guilabel></quote> entry. <parameter>p</parameter> is a
  486.         probability value between 0 and 1. The Bernoulli distribution
  487.         has two random values 0 and 1, and <parameter>p</parameter> is
  488.         the probability to observe value 1.  The mean of a random
  489.         variable that has a Bernoulli distribution is <parameter>E(X)
  490.         = 1(p) + 0(1-p) = p</parameter>, and the variance is
  491.         <parameter>var(X) = p(1-p)</parameter>.</para>
  492.         </listitem></varlistentry>
  493.  
  494.      <varlistentry><term>Uniform Random Distribution</term>
  495.      <listitem>
  496.         <para>Specify the range of the continuous random variable with
  497.         the <quote><guilabel>Between:</guilabel></quote> and
  498.         <quote><guilabel>And:</guilabel></quote> entries.  The default
  499.         values for these entries are 0 and 1.</para>
  500.         </listitem></varlistentry>
  501.      </variablelist>
  502.    <figure id="random-example-1">
  503.     <title>Some Example Data for the Random Number Generation Tool</title>
  504.     <screenshot>
  505.     <mediaobject>
  506.             <imageobject>
  507.               <imagedata fileref="figures/analysistools-random-ex1.png" 
  508.                   format="PNG" />
  509.             </imageobject>
  510.             <textobject>
  511.               <phrase>An image of some example data for use with the
  512.               random number generation tool.</phrase>
  513.             </textobject>
  514.            </mediaobject>
  515.     </screenshot>
  516.   </figure>
  517.  <example id="usingrandomtool"><title>Using the Random Number Generation Tool</title>
  518.      <para><xref linkend="random-example-1" /> shows some example data and 
  519.      <xref linkend="random-example-2" /> the corresponding output.
  520.      </para>
  521. </example>
  522.   <figure id="random-example-2">
  523.     <title>Random Number Generation Tool Output</title>
  524.     <screenshot>
  525.     <mediaobject>
  526.             <imageobject>
  527.               <imagedata fileref="figures/analysistools-random-ex2.png" 
  528.                   format="PNG" />
  529.             </imageobject>
  530.             <textobject>
  531.               <phrase>An image of the output from the random number
  532.               generation tool.</phrase>
  533.             </textobject>
  534.            </mediaobject>
  535.     </screenshot>
  536.   </figure>
  537.   </sect2>
  538.  
  539.  
  540. </sect1>
  541.  
  542.