add RecommandPoint and DBRecommand file

This commit is contained in:
kobayashi 2014-12-27 01:26:01 +08:00
parent d0efd0ea4c
commit d371fa88a2
2 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace UElearning\Database;
use UElearning\Exception;
require_once UELEARNING_LIB_ROOT.'/Database/Database.php';
require_once UELEARNING_LIB_ROOT.'/Database/Exception.php';
class DBRecomamnd extends Database
{
public function __construct()
{
}
protected function queryBelongByWhere($where)
{
}
}

View File

@ -0,0 +1,55 @@
<?php
require_once __DIR__.'/../config.php';
require_once UELEARNING_LIB_ROOT.'/Target/Target.php';
use UElearning\Target;
use UElearning\Exception;
/**
* 推薦學習點
* Usage:
* $recommand = new RecommandPoint();
*/
class RecommandPoint
{
/**
* 正規化參數
*
* @access private
* @type double
*/
private $gamma;
/**
* 調和參數(常數)
*
* @access private
* @type double
*/
private const $ALPHA = 0.5;
public function __construct()
{
}
/**
* 計算正規化參數
* @return double 正規化參數
*/
private function computeNormalizationParameter()
{
}
/**
* 推薦學習點
* @return array 學習點清單
*/
public function recommand()
{
}
}