亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? timeseries2symbol.m

?? Symbolic Representations of Time Series... SAX is just as good as other representations, or working
?? M
字號:
% Copyright and terms of use (DO NOT REMOVE):
% The code is made freely available for non-commercial uses only, provided that the copyright 
% header in each file not be removed, and suitable citation(s) (see below) be made for papers 
% published based on the code.
%
% The code is not optimized for speed, and we are not responsible for any errors that might
% occur in the code.
%
% The copyright of the code is retained by the authors.  By downloading/using this code you
% agree to all the terms stated above.
%
%   Lin, J., Keogh, E., Lonardi, S. & Chiu, B. 
%   "A Symbolic Representation of Time Series, with Implications for Streaming Algorithms." 
%   In proceedings of the 8th ACM SIGMOD Workshop on Research Issues in Data Mining and 
%   Knowledge Discovery. San Diego, CA. June 13, 2003. 
%
%
%   Lin, J., Keogh, E., Patel, P. & Lonardi, S. 
%   "Finding Motifs in Time Series". In proceedings of the 2nd Workshop on Temporal Data Mining, 
%   at the 8th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 
%   Edmonton, Alberta, Canada. July 23-26, 2002
%
% This function takes in a time series and convert it to string(s).
% There are two options:
%   1. Convert the entire time series to ONE string
%   2. Use sliding windows, extract the subsequences and convert these subsequences to strings
%
% For the first option, simply enter the length of the time series as "N"
%   ex. We have a time series of length 32 and we want to convert it to a 8-symbol string,
%       with alphabet size 3:
%       timeseries2symbol(data, 32, 8, 3)
% For the second option, enter the desired sliding window length as "N"
%   ex. We have a time series of length 32 and we want to extract subsequences of length 16 using
%       sliding windows, and convert the subsequences to 8-symbol strings, with alphabet size 3:
%       timeseries2symbol(data, 16, 8, 3)
% 
%
% Input:
%   data              is the raw time series. 
%   N                 is the length of sliding window (use the length of the raw time series
%                     instead if you don't want to have sliding windows)
%   n                 is the number of symbols in the low dimensional approximation of the sub sequence.
%   alphabet_size     is the number of discrete symbols. 2 <= alphabet_size <= 10, although alphabet_size = 2 is a special "useless" case.
%
% Output:
%   symbolic_data:    matrix of symbolic data (no-repetition).  If consecutive subsequences
%                     have the same string, then only the first occurrence is recorded, with
%                     a pointer to its location stored in "pointers"
%   pointers:         location of the first occurrences of the strings
%
% N/n must be an integer, otherwise the program will give a warning, and abort.
%
% The variable "win_size" is assigned to N/n, this is the number of data points on the raw 
% time series that will be mapped to a single symbol, and can be imagined as the 
% "compression rate".
%
% The symbolic data is returned in "symbolic_data", with pointers to the subsequences  
%
%
% 
%
% Copyright (c) 2003, Eamonn Keogh, Jessica Lin, Stefano Lonardi, Pranav Patel.  All rights reserved.
%
function [symbolic_data, pointers] =  timeseries2symbol(data, N, n, alphabet_size)

if (N/n - floor(N/n))                               % N/n must be an integer.
    disp('N/n must be an integer. Aborting '); , return;  
end; 

if alphabet_size > 10
    disp('Currently alphabet_size cannot be larger than 10.  Please update the breakpoint table if you wish to do so');
    return;
end

win_size = floor(N/n);                              % win_size is the number of data points on the raw time series that will be mapped to a single symbol

pointers         = [];                                                  % Initialize pointers,
symbolic_data = zeros(1,n);                                             % Initialize symbolic_data with a void string, it will be removed later.
all_string = zeros(length(data)-N+1,n);

% Scan accross the time series extract sub sequences, and converting them to strings.
for i = 1 : length(data) - (N -1)                                       
    
    % Remove the current subsection.
    sub_section = data(i:i + N -1); 
    
    % Z normalize it.
    sub_section = (sub_section - mean(sub_section))/std(sub_section);     
    
    % take care of the special case where there is no dimensionality reduction
    if N == n
        PAA = sub_section;
        
    % Convert to PAA.    
    else
        PAA = [mean(reshape(sub_section,win_size,n))] ;                     
    end
    
    current_string = map_to_string(PAA,alphabet_size);          % Convert the PAA to a string. 
    
    if ~all(current_string == symbolic_data(end,:))             % If the string differs from its leftmost neighbor...
        symbolic_data    = [symbolic_data; current_string];     % ... add it to the set...
        pointers         = [pointers ; i];                      % ... and add a new pointer.
    end;
end;

% Delete the first element, it was just used to initialize the data structure
symbolic_data(1,:) = [];                                               

%--------------------------------------------------------------------------------------------------------------------------------------------------------
%----------------Local Functions----------------------Local Functions----------------Local Functions----------------------Local Functions----------------
%--------------------------------------------------------------------------------------------------------------------------------------------------------


function string = map_to_string(PAA,alphabet_size)

string = zeros(1,length(PAA));

switch alphabet_size
        case 2, cut_points  = [-inf 0];
        case 3, cut_points  = [-inf -0.43 0.43];
        case 4, cut_points  = [-inf -0.67 0 0.67];
        case 5, cut_points  = [-inf -0.84 -0.25 0.25 0.84];
        case 6, cut_points  = [-inf -0.97 -0.43 0 0.43 0.97];
        case 7, cut_points  = [-inf -1.07 -0.57 -0.18 0.18 0.57 1.07];
        case 8, cut_points  = [-inf -1.15 -0.67 -0.32 0 0.32 0.67 1.15];
        case 9, cut_points  = [-inf -1.22 -0.76 -0.43 -0.14 0.14 0.43 0.76 1.22];
        case 10, cut_points = [-inf -1.28 -0.84 -0.52 -0.25 0. 0.25 0.52 0.84 1.28];
        otherwise disp('Error! alphabet_size is too big');           
end;
        
for i = 1 : length(PAA)    
    string(i) = sum( (cut_points <= PAA(i)), 2 );         % order is now: a = 1, b = 2, c = 3..
end; 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
bt7086福利一区国产| 久久福利资源站| 久久一区二区视频| 在线播放日韩导航| 欧美丝袜自拍制服另类| 91麻豆免费在线观看| av在线免费不卡| 成人av在线一区二区三区| 国产麻豆日韩欧美久久| 久久国产精品无码网站| 美女精品自拍一二三四| 免费日本视频一区| 久久爱www久久做| 国产一区二区三区在线观看免费 | 欧美日韩卡一卡二| 在线影院国内精品| 在线观看中文字幕不卡| 欧美午夜精品久久久久久超碰| 在线免费观看不卡av| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 色婷婷国产精品| 欧美丝袜丝nylons| 日韩欧美一区二区视频| 欧美一区二区三区日韩| 久久综合色一综合色88| 国产欧美精品一区aⅴ影院 | 中文字幕欧美激情| 国产精品色婷婷久久58| 亚洲专区一二三| 免费成人在线观看视频| 国产高清亚洲一区| 91在线无精精品入口| 欧美丝袜自拍制服另类| 日韩欧美三级在线| 国产精品久久综合| 亚洲成人一区二区在线观看| 毛片一区二区三区| 成人性生交大片免费看在线播放| 99视频热这里只有精品免费| 2020国产精品| 国产精品水嫩水嫩| 亚洲午夜三级在线| 国产一区999| 欧美视频在线一区二区三区| 日韩精品在线一区| 国产精品乱人伦| 午夜成人在线视频| 成人网在线播放| 欧美日本乱大交xxxxx| 国产人妖乱国产精品人妖| 亚洲国产精品一区二区久久| 国产宾馆实践打屁股91| 欧美日韩一区中文字幕| 久久久精品tv| 日韩电影免费在线看| 不卡在线观看av| ww亚洲ww在线观看国产| 亚洲午夜电影网| av在线不卡网| 久久精品人人做人人综合| 日韩国产欧美一区二区三区| 91污片在线观看| 国产午夜精品久久久久久久 | 欧美性猛片xxxx免费看久爱| 久久久99精品久久| 日韩黄色免费网站| 久久久精品免费网站| 一区二区激情视频| 99热99精品| 久久久久久久久99精品| 老司机午夜精品99久久| 欧美日韩在线综合| 亚洲免费观看高清在线观看| 国产成人在线观看| 日韩精品在线看片z| 日韩电影在线一区二区| 欧美色图天堂网| 亚洲免费av高清| 不卡视频在线观看| 国产精品进线69影院| 国产夫妻精品视频| 久久久久久久网| 国产一区二区三区国产| 久久久欧美精品sm网站| 国产在线国偷精品免费看| 精品国产亚洲在线| 精品亚洲aⅴ乱码一区二区三区| 91精品国产高清一区二区三区蜜臀 | 91国模大尺度私拍在线视频| 亚洲人妖av一区二区| www.综合网.com| 亚洲视频免费在线观看| 色综合久久久久综合99| 一区二区三区国产| 欧美欧美欧美欧美| 本田岬高潮一区二区三区| 1区2区3区欧美| 在线观看欧美精品| 首页欧美精品中文字幕| 欧美大片在线观看| 成人一区二区三区视频| 综合欧美亚洲日本| 欧美电影一区二区| 久久激情综合网| 中文字幕不卡三区| 在线一区二区三区四区| 日韩黄色免费电影| 国产女人aaa级久久久级| jlzzjlzz欧美大全| 亚洲成人777| 久久综合狠狠综合久久综合88| 国产成人精品亚洲午夜麻豆| 亚洲免费观看高清完整版在线观看熊 | 亚洲成人av在线电影| www国产精品av| 色综合中文字幕| 日日摸夜夜添夜夜添精品视频| 精品久久久久一区二区国产| 成人av先锋影音| 天堂蜜桃91精品| 欧美激情一区不卡| 欧美裸体bbwbbwbbw| 国产精品系列在线播放| 亚洲成人1区2区| 国产欧美日韩中文久久| 欧美三片在线视频观看| 国产成人免费网站| 亚洲国产婷婷综合在线精品| 久久精品网站免费观看| 欧美日韩一区二区三区不卡| 丁香婷婷综合激情五月色| 五月婷婷激情综合网| 老司机精品视频线观看86| 欧美国产精品一区二区三区| 欧美亚洲综合在线| 岛国一区二区在线观看| 热久久国产精品| 亚洲同性同志一二三专区| 欧美精品一区男女天堂| 欧美性三三影院| gogogo免费视频观看亚洲一| 久久99久久久久| 三级久久三级久久| 一区2区3区在线看| 中文字幕二三区不卡| 精品久久久久一区| 日韩一区二区视频在线观看| 欧美性猛交xxxx乱大交退制版| 成人久久视频在线观看| 精品一区二区三区蜜桃| 日韩激情中文字幕| 婷婷一区二区三区| 亚洲人成精品久久久久久| 国产精品卡一卡二卡三| 国产欧美一区二区精品仙草咪| 日韩一区二区三区免费观看| 精品视频在线看| 在线看日韩精品电影| 91美女在线视频| 99re热视频精品| 97久久超碰国产精品| 成人av电影在线观看| 丁香天五香天堂综合| 国产精品一区二区三区99| 国产一区二区日韩精品| 国产在线精品不卡| 高清在线成人网| 成人黄色在线视频| 色呦呦国产精品| 欧美系列一区二区| 欧美一区二区三区爱爱| 日韩精品专区在线影院重磅| 精品蜜桃在线看| 亚洲国产成人自拍| 亚洲欧美日本韩国| 亚洲国产精品影院| 久久99蜜桃精品| 国产精品18久久久久久vr| 成人黄色777网| 91色porny蝌蚪| 欧美日韩成人一区二区| 欧美tickling网站挠脚心| 久久综合色之久久综合| 国产精品久久免费看| 亚洲自拍欧美精品| 蜜桃视频在线一区| 成人性视频免费网站| 在线观看91视频| 日韩一卡二卡三卡四卡| 国产精品女同互慰在线看| 亚洲激情在线播放| 久久精品国产免费| 99精品偷自拍| 欧美大尺度电影在线| 亚洲人成7777| 日本伊人色综合网| 99精品视频在线免费观看| 欧美精品在线一区二区三区| 久久亚洲影视婷婷| 亚洲综合一区在线|