Documentation ¶
Index ¶
- Variables
- func AddQuarter(qdate string, diff int) (string, error)
- func AddYear(qdate string, diff int) (string, error)
- func BytesToFloat64(bys []byte) float64
- func BytesToInt(bys []byte) uint16
- func BytesToInt64(bys []byte) int64
- func CalApr(tpr float64, period float64) float64
- func CalTpr(apr float64, period float64) float64
- func CreateI18n(data interface{}) string
- func CurrentDate() int64
- func CurrentMinute() int64
- func DiffYear(sqdate string, eqdate string) (int, error)
- func Equal(src float64, target float64) bool
- func GetJsonMap(data interface{}) (map[string]string, map[string]string, []string)
- func GetQReportDate(reportDate string) string
- func GetQTradeDate(tradeDate int64) string
- func GetWTradeDate(tradeDate int64) string
- func InBuildInt(colname string, paraInt []int) (string, []interface{})
- func InBuildStr(colname string, paraStr string, sep string) (string, []interface{})
- func Mkdir(path string) error
- func ReflectFields(d interface{}) (fieldParam string)
- func Rename(path string, newpath string) error
- func StdPath(path string) string
- func ToCsv(head []string, data []interface{}) string
- type AggregationType
- type Stat
- func (this *Stat) CalCor(x_colname string) interface{}
- func (this *Stat) CalCors() map[string]interface{}
- func (this *Stat) CalCov(x_colname string) interface{}
- func (this *Stat) CalMad() interface{}
- func (this *Stat) CalMean() interface{}
- func (this *Stat) CalMedian() []interface{}
- func (this *Stat) CalPca() []interface{}
- func (this *Stat) CalRsd() interface{}
- func (this *Stat) CalStd(reserved_colnames []string, isWinsorize bool) ([]interface{}, []interface{})
- func (this *Stat) CalStddev() interface{}
- func (this *Stat) CalSum() interface{}
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BytesToFloat64 ¶
func BytesToInt ¶
func BytesToInt64 ¶
func CreateI18n ¶
func CreateI18n(data interface{}) string
func CurrentDate ¶
func CurrentDate() int64
func CurrentMinute ¶
func CurrentMinute() int64
func GetJsonMap ¶
func GetQReportDate ¶
func GetQTradeDate ¶
func GetWTradeDate ¶
func InBuildInt ¶
func InBuildStr ¶
func ReflectFields ¶
func ReflectFields(d interface{}) (fieldParam string)
Types ¶
type AggregationType ¶
type AggregationType int
const ( Aggregation_SUM AggregationType = iota + 1 Aggregation_MAX Aggregation_MIN Aggregation_MEAN Aggregation_MEDIAN Aggregation_STDDEV Aggregation_RSD Aggregation_COV Aggregation_COR Aggregation_COUNT Aggregation_STD Aggregation_MINMAX Aggregation_PCA )
type Stat ¶
type Stat struct { Sum interface{} Min interface{} Max interface{} Count interface{} Median []interface{} Mean interface{} Stddev interface{} Mad interface{} Covs map[string]interface{} Cors map[string]interface{} Rsd interface{} Pca []interface{} Std []interface{} Minmax []interface{} Data []interface{} Colnames []string // contains filtered or unexported fields }
func CreateStat ¶
Click to show internal directories.
Click to hide internal directories.