<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">ENG</journal-id><journal-title-group><journal-title>Engineering</journal-title></journal-title-group><issn pub-type="epub">1947-3931</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/eng.2018.1010049</article-id><article-id pub-id-type="publisher-id">ENG-87875</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Techniques of Discrete Function Transfers into Continuous Function in Practice
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ming-Jong</surname><given-names>Lin</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Department of Electronic Engineering, Southern Taiwan University of Science and Technology, Tainan</addr-line></aff><pub-date pub-type="epub"><day>10</day><month>10</month><year>2018</year></pub-date><volume>10</volume><issue>10</issue><fpage>680</fpage><lpage>687</lpage><history><date date-type="received"><day>23,</day>	<month>August</month>	<year>2018</year></date><date date-type="rev-recd"><day>16,</day>	<month>October</month>	<year>2018</year>	</date><date date-type="accepted"><day>19,</day>	<month>October</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  One confusing question over a long period of time is how transfer the discrete function transfers into continuous function. Recently the issue has been resolved but some details of the transformation process will be introduced in the paper. The correlation coefficients of 100,000 values are established from the two groups of data with the range between -1 and 1, creating a histogram from these correlation coefficient values known as “the probability mass function.” The coefficient values are brought into the discrete distribution function, so that transfers into the discrete cumulative function, next converted into a continuous cumulative function, next which is differentiated to get the density function, so that it is easy to being research analysis. A model will be established during the process of the conversion what the medium is “the least squares algorithm.” Finally, when the integral of the area within the range of the density function equals to 1, this implies that the transformation complete succeeds from the discrete function to the continuous function.
 
</p></abstract><kwd-group><kwd>Probability Mass Function</kwd><kwd> Discrete Cumulative Function</kwd><kwd> Continuous Cumulative Function</kwd><kwd> Probability Density Function</kwd><kwd> The Least Squares Algorithm</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The author has spent some time investigating the reason for the discrete function transferring into continuous function. Due to the method that is what discrete functions convert into continuous functions which are not easy to find in literature [<xref ref-type="bibr" rid="scirp.87875-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.87875-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.87875-ref3">3</xref>] . All studies of data start with discrete functions and finally analyze continuous functions. So that it is especially important for converting from discrete functions into continuous functions. To avoid making the same mistakes that has been made regarding the conversion process, the following describes one case through illustration. Many of research papers comprise historical data and require certain number of data for analysis. However, the graph or the curve in the analytical process is represented by a discrete function a number of studies document, and the data of research have been represented with the discrete functions. Nonetheless, those functions must be converted to a continuous function, so that it can be included in the theoretical derivation for analyze. Therefore, the processing procedures of the two functions convert from discrete into continuous as specifically described herein. This article only narrates the steps during the conversion, as shown in the follows. For subsequently research analysis, the discrete cumulative function will be converted into a continuous cumulative function the former function is yielded from two sets of historical data by the application of correlation coefficient theory.</p></sec><sec id="s2"><title>2. The Correlation Coefficient</title><p>The data of two groups are composed of normal 100 sets and normal 1000 sets from historical data, each of which consists of 6 elements (H<sub>2</sub>, C<sub>2</sub>H<sub>4</sub>, C<sub>2</sub>H<sub>2</sub>, CH<sub>4</sub>, C<sub>2</sub>H<sub>6</sub>, CO). The correlation coefficient of the 100,000 cases have values fallen between −1 and +1 according to the correlation coefficient theory [<xref ref-type="bibr" rid="scirp.87875-ref4">4</xref>] . Their distribution will be presented by the probability histogram, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. <xref ref-type="fig" rid="fig2">Figure 2</xref> shows the curve of the cumulative discrete function that been transformed from <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>For the method of generating of the correlation coefficient value, please refer to the literature [<xref ref-type="bibr" rid="scirp.87875-ref5">5</xref>] .</p></sec><sec id="s3"><title>3. The Discrete Transfers into Continuous Function</title><p>In order to find the most similar continuous accumulation function of the above discrete cumulative function, this article refers to Gaussian, Weibull, and others distrbution. The figure of the cumulative continuious function of Weibull distribution and which is widely employed as a model in testing. Maximum likelihood equations are derived for estimating the distribution parameters from complete samples, singly censored samples and progressively (multiple) censored samples. Asymptotic variance-covariance matrices are given for each of these sample types. An illustrative example is included [<xref ref-type="bibr" rid="scirp.87875-ref6">6</xref>] . The maximum-likelihood parameter estimation problem and how the Expectation Maximization (EM) algorithm is can be used for its solution. The form of the EM algorithm as it is often given in the literature. We then develop the EM parameter estimation procedure for two finding the parameters of a mixture of Gaussian densities, and the parameters of a hidden Markov model for both discrete and Gaussian mixture observation models [<xref ref-type="bibr" rid="scirp.87875-ref7">7</xref>] . Eventually, Exponential distribution function is adopted because the figure of the cumulative discrete function was known previously; this paper firstly looks into a similar figure of the cumulative continuous function from the literature. The figure of the cumulative continuous exponential function is adopted as the module conversion in this paper, as shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>. The mathematical formula is as described in Equation (1). The symbols of B (or λ) and r that are represented what those rate parameter and variable in Equation (1). The values of the variable are between from −1 to 1.</p><p>F ( r ; λ ) = { ( e B ∗ r − 1 ) − 1 ≤ r ≤ 1 } (1)</p><p>The curves of cumulative for the actual data (red line) and exponential of standard (blue line) are shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. This paper will use the method of least squares to convert the data curve (discrete) into a continuous function curve. There will be several coefficients generated in the process of conversion, such as A and B in Equation (2).</p><p>F ( r ; A ; B ) = { A ∗ ( e B ∗ r − 1 ) − 1 ≤ r ≤ 1 } (2)</p><p>After the method of the least squaresalgorithm [<xref ref-type="bibr" rid="scirp.87875-ref8">8</xref>] , A and B are respectively calculated 0.07, 2.78 and the error rate (RMSE) of the conversion is 2.7%. The root mean square error (RMSE) is regularly employed in model evaluation studies. The RMSE measures could be more beneficial. In this technical note, we demonstrate that the RMSE is not ambiguous in its meaning, contrary to what was claimed by Willmott et al. (2009). The RMSE is more appropriate to represent model performance when the error distribution is expected to be Gaussian. In addition, we show that the RMSE satisfies the triangle inequality requirement for a distance metric, whereas Willmott et al. (2009) indicated that the sums-of-squares-based statistics do not satisfy this rule. In the end, we discussed some circumstances where using the RMSE will be more beneficial [<xref ref-type="bibr" rid="scirp.87875-ref9">9</xref>] .</p></sec><sec id="s4"><title>4. Verification</title><p>After the function was converted from discrete function to continuous, the function still needs verification by the integration of continuous function. First, the continuous accumulation function is differentiated into density function with adjacent re-integration from −1 to 1 of variables the value of the area equals to 1 (or approaching 1) and has been verified correct in the process, which is known as a successful conversion. The formula of the mathematical was been differentiated from continuous function, as shown the formula 3. The Y (A) stands for the area of the integration of f ( r ) that was shown below.</p><p>f ( r ) = 0.195 ∗ e 2.78 ∗ r (3)</p><p>Y ( A ) = ∫ − 1 1 f ( r ) d r = ∫ − 1 1 0.195 ∗ e 2.69 ∗ r d r ≅ 1</p></sec><sec id="s5"><title>5. Conclusion</title><p>The discrete function transferring into continuous function is an important work in the process of analyzing of data and investigation in all fields. There are variously of ways for transfer but the paper only introduces which is called “the least square algorithm”. This method yields the corresponding coefficient of the Equation (2), while the conversion work is performed by density function. In this paper, the area value of the coverted probability density functin by integration from −1 to 1 is not meet with theoretical value 1, but approaching, found in the process of calculation. Nonetheless, the result of the transformation was not influential. To conclude briefly, the paper will provide the graphical of the program for reference below [<xref ref-type="bibr" rid="scirp.87875-ref10">10</xref>] .</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The author declares no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Lin, M.-J. (2018) Techniques of Discrete Function Transfers into Continuous Function in Practice. Engineering, 10, 680-687. https://doi.org/10.4236/eng.2018.1010049</p></sec></body><back><ref-list><title>References</title><ref id="scirp.87875-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Chow, C. and Lin, C. (1968) Approximating Discrete Probability Distributions with Dependence Trees. IEEE Transactions on Information Theory, 14, 462-467.  
https://doi.org/10.1109/TIT.1968.1054142</mixed-citation></ref><ref id="scirp.87875-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Akaike, H. (1959) On a Successive Transformation of Probability Distribution and Its Application to the Analysis of the Optimum Gradient Method. Annals of the Institute of Statistical Mathematics, 11, 1-16. https://doi.org/10.1007/BF01831719</mixed-citation></ref><ref id="scirp.87875-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Walpole, R.E., Myers, R.H., Myers, S.L. and Ye, K.Y. (2016) Probability &amp; Statistics for Engineers and Scientists. 9th Edition, Pearson, London.</mixed-citation></ref><ref id="scirp.87875-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Correlation Coefficient. https://en.wikipedia.org/wiki/Correlation_coefficient</mixed-citation></ref><ref id="scirp.87875-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Lin, M.-J. (2014) A Heuristic Approach to the Diagnosis of Transformer’s Insulating Oil. Journal of Power and Energy Engineering, 2, 509-517.  
https://doi.org/10.4236/jpee.2014.24069</mixed-citation></ref><ref id="scirp.87875-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Rockette, H., Antle, C. and Klimko, L.A. (2012) Maximum Likelihood Estimation in the Weibull Distribution Based on Complete and on Censored Samples. Technometrics, 7, 579-588.</mixed-citation></ref><ref id="scirp.87875-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Bilmes, J.A. (1998) A Gentle Tutorial of the EM Algorithm and Its Application to Parameter Estimation for Gaussian Mixture and Hidden Markov Models. International Computer Science Institute.</mixed-citation></ref><ref id="scirp.87875-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Marquardt, D.W. (1963) An Algorithm for Least-Squares Estimation of Nonlinear Parameters. Journal of the Society for Industrial and Applied Mathematics, 11, 431-441. https://doi.org/10.1137/0111030</mixed-citation></ref><ref id="scirp.87875-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Mansard, E.P.D. and Funke, E.R. (1980) The Measurement of Incident and Reflected Spectra Using a Least Squares Method. Conference Information 17th International Conference on Coastal Engineering, Sydney, Australia, 23-28 March 1980, 154-172.</mixed-citation></ref><ref id="scirp.87875-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Program of MATLAB Application Software.</mixed-citation></ref></ref-list></back></article>