扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:Paul Meagher 来源:ibm 2007年10月21日
关键字: Linux
<?php // explore.php if (!empty($x_values)) { $X = explode(",", $x_values); $numX = count($X); } if (!empty($y_values)) { $Y = explode(",", $y_values); $numY = count($Y); } // display entry data entry form if variables not set if ( (empty($title)) OR (empty($x_name)) OR (empty($x_values)) OR (empty($y_name)) OR (empty($conf_int)) OR (empty($y_values)) OR ($numX != $numY) ) { // Omitted code for displaying entry form } else { include_once "slr/SimpleLinearRegressionHTML.php"; $slr = new SimpleLinearRegressionHTML($X, $Y, $conf_int); echo "<h2>$title</h2>"; $slr->showTableSummary($x_name, $y_name); echo "<br><br>"; $slr->showAnalysisOfVariance(); echo "<br><br>"; $slr->showParameterEstimates($x_name, $y_name); echo "<br>"; $slr->showFormula($x_name, $y_name); echo "<br><br>"; $slr->showRValues($x_name, $y_name); echo "<br>"; include ("jpgraph/jpgraph.php"); include ("jpgraph/jpgraph_scatter.php"); include ("jpgraph/jpgraph_line.php"); // The code for displaying the graphics is inline in the // explore.php script. The code for these two line plots // finishes off the script: // Omitted code for displaying scatter plus line plot // Omitted code for displaying residuals plot } ?> |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。