plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | xyza11808/MATLAB-master | var_to_tsdata_nonstat.m | .m | MATLAB-master/mvgc_v1.0/core/var_to_tsdata_nonstat.m | 2,877 | utf_8 | 8c861932e88d306e11d7467f5d60d78e | %% var_to_tsdata_nonstat
%
% Generate random multi-trial non-stationary Gaussian VAR time series
%
% <matlab:open('var_to_tsdata_nonstat.m') code>
%
%% Syntax
%
% X = var_to_tsdata_nonstat(A,SIG,N)
%
%% Arguments
%
% See also <mvgchelp.html#4 Common variable names and data structures>.
%
% _input_
%
% A ... |
github | xyza11808/MATLAB-master | tsdata_to_cpsd.m | .m | MATLAB-master/mvgc_v1.0/core/tsdata_to_cpsd.m | 5,441 | utf_8 | 3f3ccb6f4049dc2cce2965b6383e0bd4 | %% tsdata_to_cpsd
%
% Estimate cross-power spectral density from time series data
%
% <matlab:open('tsdata_to_cpsd.m') code>
%
%% Syntax
%
% S = tsdata_to_cpsd(X,fres,method,window,noverlap,nw,ntapers)
%
%% Arguments
%
% See also <mvgchelp.html#4 Common variable names and data structures>.
%
% _input_
%
% X ... |
github | xyza11808/MATLAB-master | CaSignal_ROI_GUI_NP_extract.m | .m | MATLAB-master/Imaging_data_processing/CaSignal_ROI_GUI_NP_extract.m | 146,471 | utf_8 | bcdb14af341830355e89720f981373d2 | function varargout = CaSignal_ROI_GUI_NP_extract(varargin)
% CaSignal_ROI_GUI_NP_extract M-file for CaSignal_ROI_GUI_NP_extract.fig
% CaSignal_ROI_GUI_NP_extract, by itself, creates a new CaSignal_ROI_GUI_NP_extract or raises the existing
% singleton*.
%
% H = CaSignal_ROI_GUI_NP_extract returns the hand... |
github | xyza11808/MATLAB-master | CaSignal_ROI_GUI_SemiAuto.m | .m | MATLAB-master/Imaging_data_processing/CaSignal_ROI_GUI_SemiAuto.m | 109,900 | utf_8 | 538185de38d76e2ee1582ced1e8401be | function varargout = CaSignal_ROI_GUI_SemiAuto(varargin)
% CaSignal_ROI_GUI_SemiAuto M-file for CaSignal_ROI_GUI_SemiAuto.fig
% CaSignal_ROI_GUI_SemiAuto, by itself, creates a new CaSignal_ROI_GUI_SemiAuto or raises the existing
% singleton*.
%
% H = CaSignal_ROI_GUI_SemiAuto returns the handle to a new ... |
github | xyza11808/MATLAB-master | CaSignal_ROI_GUI_par.m | .m | MATLAB-master/Imaging_data_processing/CaSignal_ROI_GUI_par.m | 96,268 | utf_8 | 2bb9df9e305f57aa7ec7d8e6cb716282 |
function varargout = CaSignal_ROI_GUI_par(varargin)
% CaSignal_ROI_GUI_par M-file for CaSignal_ROI_GUI_par.fig
% CaSignal_ROI_GUI_par, by itself, creates a new CaSignal_ROI_GUI_par or raises the existing
% singleton*.
%
% H = CaSignal_ROI_GUI_par returns the handle to a new CaSignal_ROI_GUI_par or the h... |
github | xyza11808/MATLAB-master | Labeled_ROI_Selection.m | .m | MATLAB-master/Imaging_data_processing/Labeled_ROI_Selection.m | 23,770 | utf_8 | 3de2016de73f9cbf4b976e141ce89903 | function varargout = Labeled_ROI_Selection(varargin)
% LABELED_ROI_SELECTION MATLAB code for Labeled_ROI_Selection.fig
% LABELED_ROI_SELECTION, by itself, creates a new LABELED_ROI_SELECTION or raises the existing
% singleton*.
%
% H = LABELED_ROI_SELECTION returns the handle to a new LABELED_ROI_SELECTI... |
github | xyza11808/MATLAB-master | dftregistration.m | .m | MATLAB-master/Imaging_data_processing/dftregistration.m | 8,022 | utf_8 | 7c769c44dc6d69fb9e814689586f0424 |
function [output Greg] = dftregistration(buf1ft,buf2ft,usfac)
% function [output Greg] = dftregistration(buf1ft,buf2ft,usfac);
% Efficient subpixel image registration by crosscorrelation. This code
% gives the same precision as the FFT upsampled cross correlation in a
% small fraction of the computation time and with... |
github | xyza11808/MATLAB-master | nx_imAnalysisGUI2013.m | .m | MATLAB-master/Imaging_data_processing/nx_imAnalysisGUI2013.m | 91,474 | utf_8 | d338f9abfebe98fae59bb569f43a9443 | function varargout = nx_imAnalysisGUI2013(varargin)
% NX_IMANALYSISGUI2013 M-file for nx_imAnalysisGUI2013.fig
% NX_IMANALYSISGUI2013, by itself, creates a new NX_IMANALYSISGUI2013 or raises the existing
% singleton*.
%
% H = NX_IMANALYSISGUI2013 returns the handle to a new NX_IMANALYSISGUI2013 or the ha... |
github | xyza11808/MATLAB-master | CaSignal_ROI_GUI.m | .m | MATLAB-master/Imaging_data_processing/CaSignal_ROI_GUI.m | 94,930 | utf_8 | 45fc95f9aef68a8ddf438d66bdebb764 |
function varargout = CaSignal_ROI_GUI(varargin)
% CaSignal_ROI_GUI M-file for CaSignal_ROI_GUI.fig
% CaSignal_ROI_GUI, by itself, creates a new CaSignal_ROI_GUI or raises the existing
% singleton*.
%
% H = CaSignal_ROI_GUI returns the handle to a new CaSignal_ROI_GUI or the handle to
% the existing... |
github | xyza11808/MATLAB-master | load_scim_data.m | .m | MATLAB-master/Imaging_data_processing/load_scim_data.m | 7,888 | utf_8 | 05f266b2aa3b2aea108143277d195d99 | function [im, header] = load_scim_data(filename,varargin)
% function [im, header] = load_scim_data(filename,varargin)
% varargin{1}, frame_range, 1x2 array specifying start and end frame to
% load. If not specified, load all frames
%
% -NX 2013-5-30
%
% varargin{2}, offset_to_mode_flag. ScanImage4 data has negative va... |
github | xyza11808/MATLAB-master | smc_oopsi_forward.m | .m | MATLAB-master/oopsi-master/smc_oopsi_forward.m | 22,117 | utf_8 | e350307a76c59eee4794bfed110a3f56 | function S = smc_oopsi_forward(F,V,P)
% the function does the backwards sampling particle filter
% notes: this function assumes spike histories are included. to turn them
% off, make sure that V.Nspikehist=0 (M is the # of spike history terms).
%
% The backward sampler has standard variance, as approximated typically.... |
github | xyza11808/MATLAB-master | smc_oopsi_backward.m | .m | MATLAB-master/oopsi-master/smc_oopsi_backward.m | 6,392 | utf_8 | c16b9bae20078d59bb8a8464856d4900 | function M = smc_oopsi_backward(S,V,P)
% this function iterates backward one step computing P[H_t | H_{t+1},O_{0:T}]
% Input---
% Sim: simulation metadata
% S: particle positions and weights
% P: parameters
% Z: a bunch of stuff initialized for speed
% t: current time step
%
% Output is a single structure ... |
github | xyza11808/MATLAB-master | fastBSpline.m | .m | MATLAB-master/fastBSplineFun/fastBSpline.m | 12,258 | utf_8 | b0a55995133f035bc119b4245b643f02 | classdef fastBSpline
%fastBSpline - A fast, lightweight class that implements
%non-uniform B splines of any order
%
%Matlab's spline functions are very general. This generality comes at
%the price of speed. For large-scale applications, including model
%fitting where some components of the mode... |
github | daniilidis-group/penncosyvio-master | ocam_undistort_map.m | .m | penncosyvio-master/tools/matlab/ocam_undistort_map.m | 11,226 | utf_8 | aaebf30d3d96cb18e97a019b4f444e80 | function U = ocam_undistort_map(OCAM_MODEL, varargin)
%
% U = ocam_undistort_map(OCAM_MODEL[, UNDIST_RES, Name, Value, ...] )
%
% builds a undistortion map and calculates the perspective camera
% matrix K for a camera modeled with the OCamCalib toolbox
%
% --- input -----
%
% OCAM_MODEL the calibration cam... |
github | daniilidis-group/penncosyvio-master | view_tags_3d.m | .m | penncosyvio-master/tools/matlab/view_tags_3d.m | 1,016 | utf_8 | 3468e44614ba95fb175e48fb1040e4e4 | function view_tags_3d(TAGSFILENAME)
%
% view_tags_3d(TAGSFILENAME)
%
% visualizes tags in file TAGSFILENAME
%
% 2016 Bernd Pfrommer
%
%% ---- input
% TAGSFILENAME file with tag pose and id information
%
%% ---- example usage
% view_tags_3d('../misc/tags.txt')
% axis 'equal'
%
tags = textread(TAGSFILENAME);
... |
github | fdcl-gwu/2016_ACC_matlab-master | controller.m | .m | 2016_ACC_matlab-master/controller.m | 3,527 | utf_8 | a7bf7072d08a26eb3862a6f1eef8a660 | % 11 June 15
% controller
function [u_f, u_m, R_des, ang_vel_des, ang_vel_dot_des, Psi, err_att, err_vel] ...
= controller(t,state, constants)
% redefine the state vector
R = reshape(state(1:9),3,3); % rotation matrix from body to inertial frame
ang_vel = state(10:12);
delta_est = state(13:15);
% extract out co... |
github | fdcl-gwu/2016_ACC_matlab-master | dynamics.m | .m | 2016_ACC_matlab-master/dynamics.m | 1,597 | utf_8 | b8e42bc370f2400fcc6a7f85be7e4955 | % 31 August 2015
% ODE function for constrained attitude stabilization
function [state_dot] = dynamics(t, state, constants)
% constants
m_sc = constants.m_sc;
J = constants.J;
kd = constants.kd;
W = constants.W;
% redefine the state vector
R = reshape(state(1:9),3,3); % rotation matrix from body to inertial frame
an... |
github | fdcl-gwu/2016_ACC_matlab-master | error_function_visualization.m | .m | 2016_ACC_matlab-master/error_function_visualization.m | 7,126 | utf_8 | 36b8878afb85945d7d2d68b95b6ddcb8 | % 28 Dec 16
% Visulalize error function behavior to try and find some relationship for
% lypanov stability proof
close all
clc
clearvars
addpath(genpath('./utilities'));
fontsize = 18;
fontname = 'Times';
figx = 680;
figy = 224;
figw = 800;
figh = 600;
fig_size = [figx,figy,figw,figh];
con_angle = 10*pi/180; % ang... |
github | fdcl-gwu/2016_ACC_matlab-master | hat_map.m | .m | 2016_ACC_matlab-master/utilities/hat_map.m | 246 | utf_8 | a1515ff3e5d34892df65ff78d2340d60 | % 8 June 15
% skew symmetric operator
function mat = hat_map(vec)
% maps a 3-vec to a skew symmetric matrix
mat = zeros(3,3);
mat(1,2) = -vec(3);
mat(1,3) = vec(2);
mat(2,1) = vec(3);
mat(2,3) = -vec(1);
mat(3,1) = -vec(2);
mat(3,2) = vec(1);
|
github | fdcl-gwu/2016_ACC_matlab-master | vee_map.m | .m | 2016_ACC_matlab-master/utilities/vee_map.m | 217 | utf_8 | 03c2d87aa5e1f2a683080adf744e0e27 | % 11 June 15
% vee map function to take a skew symmetric matrix and map it to a 3 vector
function [vec] = vee_map(mat)
x1 = mat(3,2)-mat(2,3);
x2 = mat(1,3) - mat(3,1);
x3 = mat(2,1)-mat(1,2);
vec = 1/2*[x1;x2;x3]; |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space132.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space132.m | 1,104 | utf_8 | f8a2cba34fa180596ded2c618d683ad9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 1-3-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 1-3-2 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body212.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body212.m | 1,161 | utf_8 | 0a7e298e2bb3389b1721e4c0671a2833 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Euler Body 2-1-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Euler Body 2-1-2 Angles
% about body fixed axes
%
%... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body121.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body121.m | 1,147 | utf_8 | bc82f917aa9bd05a63fd095e70feb7d6 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Euler Body 1-2-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Euler Body 1-2-1 Angles
% about body fixed axes
%
%... |
github | fdcl-gwu/2016_ACC_matlab-master | space213dot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/space213dot.m | 1,129 | utf_8 | ba1201edb58a042b27aa0abb5afb2624 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Space 2-1-3 Differential Equation
%
% Purpose:
% - Finds the rate of change of the Euler Space 2-1-3 angles
%
% theta_d = space213dot(theta,w)
%
% Inputs:
% - theta - 3 element vector with the 3 rotation angles. Same... |
github | fdcl-gwu/2016_ACC_matlab-master | dcmdot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcmdot.m | 910 | utf_8 | 3ffa80175bef127e501d2d5cde186519 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Poisson Equation
%
% Purpose:
% - Calculates the kinematic differential equation for the direction
% cosine matrix ( Poisson Equation)
%
% dcm_dot = dcmdot(dcm,omega)
%
% Inputs:
% - dcm - 3x3 direction cosine matrix... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body313.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body313.m | 1,178 | utf_8 | 8891740817ae596b1f93833967e60ef7 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 3-1-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 3-1-3 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | body313dot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/body313dot.m | 1,182 | utf_8 | c92ceb332b1f395fa95cf60436839471 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Body 3-1-3 Differential Equation
%
% Purpose:
% - Finds the rate of change of the Euler Body 3-1-3 angles
%
% theta_d = body131dot(theta,w)
%
% Inputs:
% - theta - Nx3 element vector with the 3 rotation angles. Same ... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body131.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body131.m | 1,169 | utf_8 | f3fa34cea61eb3124e5c8954fb564991 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 1-3-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 1-3-1Angles.
% Rotation about body fixed ... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space212.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space212.m | 1,103 | utf_8 | 1ea4d02f3d5f52d502810445a3262f44 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 2-1-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 2-1-2 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | body131dot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/body131dot.m | 1,217 | utf_8 | be36877d6810d79a452aa317f0ad0c08 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Body 1-3-1 Differential Equation
%
% Purpose:
% - Finds the rate of change of the Euler Body 1-3-1 angles
%
% theta_d = body131dot(theta,w)
%
% Inputs:
% - theta - Nx3 element vector with the 3 rotation angles. Same ... |
github | fdcl-gwu/2016_ACC_matlab-master | SpinCalcVis.m | .m | 2016_ACC_matlab-master/utilities/kinematics/SpinCalcVis.m | 67,580 | utf_8 | 90dc86217749e040379dcaace1713747 | function [] = SpinCalcVis()
%==========================================================================
%SpinCalcVis Rotational Visualization Tool V1.0
%Author: John Fuller
% imaginationdirect@gmail.com
%
%This is an instructional GUI to be used for learning how Euler angles,
%DCMs, quaternions, and Eule... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body231.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body231.m | 1,106 | utf_8 | d90063de9e0619b92a0a9fff414f112f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 2-3-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 2-3-1 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space231.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space231.m | 1,105 | utf_8 | 00ba77e3aff2b2fdc2976c4be6a122bf | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 2-3-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 2-3-1 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body123.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body123.m | 1,096 | utf_8 | df0a80d051a14f6d588aa483f89c037a | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Euler Body 1-2-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 1-2-3 Angles
% Rotations about body fixed ... |
github | fdcl-gwu/2016_ACC_matlab-master | body1312dcm.m | .m | 2016_ACC_matlab-master/utilities/kinematics/body1312dcm.m | 1,338 | utf_8 | 0488a204bbfdcd0ac7d29420bdfab4e4 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Body Euler 1-3-1 Angles to direction cosine matrix
%
% Purpose:
% - Converts the Body Euler 1-3-1 Angles representing a rotation into the equivalent
% row vector format direction cosine matrix
%
% dcm = body1312dcm(theta)
%... |
github | fdcl-gwu/2016_ACC_matlab-master | quatnorm.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quatnorm.m | 1,138 | utf_8 | 5a31da155ec6a641e11cd1e98a8b5a00 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion Normalize
%
% Purpose:
% - Normalize quaternions to avoid problems - vectorized
%
% quat_out = quatnorm(quat_in)
%
% Inputs:
% - quat_in - Nx4 element quaternion where the last element is the scalar
% param... |
github | fdcl-gwu/2016_ACC_matlab-master | quatdot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quatdot.m | 1,036 | utf_8 | b8e276088173ce4637d3c70bf2cfd6a6 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion differential equation
%
% Purpose:
% - Calculates the quaternion differential equation in terms of
% angular velocity in the body frame
%
% [q_d] = quatdot(q, w)
%
% Inputs:
% - q - 1x4 quaternion represent... |
github | fdcl-gwu/2016_ACC_matlab-master | orthodcm.m | .m | 2016_ACC_matlab-master/utilities/kinematics/orthodcm.m | 616 | utf_8 | 8b63e4e24e93c5d01303f85b677fa316 | % This script will orthogonalize a direction cosine matrix
function [orthoDCM] = orthodcm(DCM)
%#eml
delT = DCM*DCM'-eye(3);
orthoDCM = DCM*(eye(3)-(1/2)*delT+(1/2)*(3/4)*delT.^2-(1/2)*(3/4)*(5/6)*delT.^3+(1/2)*(3/4)*(5/6)*(7/8)*delT.^4-(1/2)*(3/4)*(5/6)*(7/8)*(9/10)*delT.^5+...
(1/2)*(3/4)*(5/6)*(7/8)*(9/... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space213.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space213.m | 1,105 | utf_8 | 185e0696808e878fe6af2083b33b1c25 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 2-1-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 2-1-3 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space313.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space313.m | 1,103 | utf_8 | fd3ae999af833bbebe99381f4d52150d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 3-1-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 3-1-3 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | srt_rotvec.m | .m | 2016_ACC_matlab-master/utilities/kinematics/srt_rotvec.m | 978 | utf_8 | ff9b939f0d2931f455ec5e24eb362985 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Simple rotation theorem
%
% Purpose:
% - Converts a vector in frame a to the corresponding vector in frame
% b given a euler axis and angle of rotation
%
% b = srt_rotvec(lambda,theta,a)
%
% Inputs:
% - lambda - eule... |
github | fdcl-gwu/2016_ACC_matlab-master | ROT2.m | .m | 2016_ACC_matlab-master/utilities/kinematics/ROT2.m | 673 | utf_8 | 2fab3c887b5ec0cf6a36cefa9dad7d8c | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Purpose: Rotation matrix about second axis (assumes row format)
% b = a*dcm
%
% Inputs:
% - beta - rotation angle (rad)
%
% Outpus:
% - rot2 - rotation matrix (3x3)
%
% Dependencies:
% - none
%
% Author: Shank... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body312.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body312.m | 1,106 | utf_8 | 8f5967900ffcdf213b9b0bd3796d2b74 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 3-1-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 3-1-2 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | quat2space213.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat2space213.m | 1,126 | utf_8 | f08958d7c2ee105d176b0fc02de6b40e | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion to Euler Space 2-1-3
%
% Purpose:
% - Convert a quaternion to the equivalaent Euler Space 2-1-3 sequence
% about the body fixed axes.
%
% theta = quat2space213(quat)
%
% Inputs:
% - quat - 1x4 quaternion de... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body132.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body132.m | 1,086 | utf_8 | d930dd82658f23a83068efe2d7ce8ea7 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Euler Body 1-3-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Euler Body 1-3-2 Angles
% about body fixed axes
%
%... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space131.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space131.m | 1,103 | utf_8 | d9c483c6f7160646920222d51ad150a8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 1-3-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 1-3-1Angles.
% Rotation about space fix... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space121.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space121.m | 1,103 | utf_8 | 0344e7fa7de0f1ddab740441619fddf0 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 1-2-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 1-2-1 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space312.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space312.m | 1,103 | utf_8 | 60755ca2f9028fd474cf8721423042d0 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 3-1-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 3-1-2 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body213.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body213.m | 1,095 | utf_8 | fb00d311309a862aa215ff53d0a5ac01 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 2-1-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 2-1-3 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | space131dot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/space131dot.m | 1,115 | utf_8 | 89b6d5c9b4d5c383324442bdcaf0e791 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Space 1-3-1 Differential Equation
%
% Purpose:
% - Finds the rate of change of the Euler Space 1-3-1 angles
%
% theta_d = space131dot(theta,w)
%
% Inputs:
% - theta - 3 element vector with the 3 rotation angles. Same... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body323.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body323.m | 1,106 | utf_8 | 3b3ea87a0d3cc5bbbaa45d99bf91821d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 3-2-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 3-2-3 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2srt.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2srt.m | 1,123 | utf_8 | edd6509d82244ff764163494599e200d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to simple rotation
%
% Purpose:
% - Convert direction cosine matrix to euler axis and angle
%
% [lambda theta] = dcm2srt(C)
%
% Inputs:
% - C - 3x3 direction cosine matrix in row vector format b = a
% ... |
github | fdcl-gwu/2016_ACC_matlab-master | quatdot2omega.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quatdot2omega.m | 197 | utf_8 | 62d5b623c320a9969dea15b3d4f612cb |
function w = quatdot2omega(q,qd)
% form the E matrix
E = [q(4) -q(3) q(2) q(1);...
q(3) q(4) -q(1) q(2);...
-q(2) q(1) q(4) q(3);...
-q(1) -q(2) -q(3) q(4)];
w = 2*qd*E;
w = w(1:3); |
github | fdcl-gwu/2016_ACC_matlab-master | space231dot.m | .m | 2016_ACC_matlab-master/utilities/kinematics/space231dot.m | 1,177 | utf_8 | e08d71ce915681664daa4fca46fdc0be | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Space 2-3-1 Differential Equation
%
% Purpose:
% - Finds the rate of change of the Euler Space 2-3-1 angles
%
% theta_d = space231dot(theta,w)
%
% Inputs:
% - theta - 3 element vector with the 3 rotation angles. Same... |
github | fdcl-gwu/2016_ACC_matlab-master | quat2dcm.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat2dcm.m | 1,845 | utf_8 | b38c2a5121aaae139003ae6f34e775b8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion to direction cosine matrix
%
% Purpose:
% - Converts a 4 element quaternion into the corresponding direction
% cosine matrix
%
% [dcm] = quat2dcm(quat)
%
% Inputs:
% - quat - Nx4 element quaternion where th... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body321.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body321.m | 1,105 | utf_8 | f9c3fc7d13d7c511768ec4166acec0eb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 3-2-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 3-2-1 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | srt2dcm.m | .m | 2016_ACC_matlab-master/utilities/kinematics/srt2dcm.m | 1,165 | utf_8 | 077fdb8ca78f8299515eba3a0a58b54d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Axis/Angle to DCM
%
% Purpose:
% - Converts a given rotation vector and rotation angle into the
% corresponding direction cosine matrix
%
% dcm = srt2dcm(lambda,theta)
%
% Inputs:
% - lambda - 3 element unit vecto... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space232.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space232.m | 1,103 | utf_8 | 3d9d6ad588f1c701d4807bef2a1d71e9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 2-3-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 2-3-2 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | quat_succesive.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat_succesive.m | 1,546 | utf_8 | 950949e66175afa8e448bc4eb9e52d58 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Successive Quaternion Rotations
%
% Purpose:
% - Combines 2 successive quaternion represented rotations into a
% single quaternion rotation
%
% quat_A2B= quat_succesive(quat_A2B1,quat_B12B)
%
% Inputs:
% - quat_A2B1 -... |
github | fdcl-gwu/2016_ACC_matlab-master | ROT3.m | .m | 2016_ACC_matlab-master/utilities/kinematics/ROT3.m | 744 | utf_8 | b72513b0010bd37cdb8ff0c1ca00a3f2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Purpose: Rotation matrix about thrid axis (assumes row format)
% b = a*dcm_a2b
%
% Inputs:
% - gamma - rotation angle (rad)
%
% Outpus:
% - rot3 - rotation matrix (3x3)
%
% Dependencies:
% - none
%
% Author: S... |
github | fdcl-gwu/2016_ACC_matlab-master | quat_rotvec.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat_rotvec.m | 868 | utf_8 | a70896226a891b83a18e537c60ca194a | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%1 line code description
%
% Purpose:
% - Converts a vector in frame a to the corresponding vector in frame
% b given a quaternion
%
% b = quat_rotvec(quat,a)
%
% Inputs:
% - quat - 4 element quaternion where the last... |
github | fdcl-gwu/2016_ACC_matlab-master | quat2space131.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat2space131.m | 1,135 | utf_8 | 875fa1ecbd77a57fb69a5e7f752453ee | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion to Euler Space 1-3-1
%
% Purpose:
% - Convert a quaternion to the equivalaent Euler Space 1-3-1 sequence
% about the body fixed axes.
%
% function theta = quat2space131(quat)
%
% Inputs:
% - quat - 1x4 quat... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space323.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space323.m | 1,103 | utf_8 | 0c8ddd4a8b25a33fcae6b22a6c6dff73 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 3-2-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 3-2-3 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2quat.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2quat.m | 1,816 | utf_8 | 5bade0cbd4a62ef77fc58ff70c006cb5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to quaternion
%
% Purpose:
% - Converts a direction cosine matrix to equivalent quaternion
%
% quat = dcm2quat(C)
%
% Inputs:
% - C - 3x3 direction cosine matrix in row vector format b =
% a*dcm_... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space123.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space123.m | 1,105 | utf_8 | ccccc639c3696db327cb61964d7f7b29 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 1-2-3 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 1-2-3 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2body232.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2body232.m | 1,105 | utf_8 | a8e20375fc0a037d09723bf11797f635 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Body Euler 2-3-2 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Body Euler 2-3-2 Angles.
% Rotation about body fixed... |
github | fdcl-gwu/2016_ACC_matlab-master | quat2body131.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat2body131.m | 1,129 | utf_8 | ce0bf8c4578e1f63a77888da9ec47455 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion to Euler Body 1-3-1
%
% Purpose:
% - Convert a quaternion to the equivalaent Euler Body 1-3-1 sequence
% about the body fixed axes.
%
% function theta = quat2body131(quat)
%
% Inputs:
% - quat - 1x4 quatern... |
github | fdcl-gwu/2016_ACC_matlab-master | ROT1.m | .m | 2016_ACC_matlab-master/utilities/kinematics/ROT1.m | 685 | utf_8 | 31bd6378aa115e819c158277cb7d056a | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Purpose: Rotation matrix about first axis (assumes row format)
% b = a*dcm
%
% Inputs:
% - alpha - rotation angle (rad)
%
% Outpus:
% - rot1 - rotation matrix (3x3)
%
% Dependencies:
% - none
%
% Author: Shank... |
github | fdcl-gwu/2016_ACC_matlab-master | dcm2space321.m | .m | 2016_ACC_matlab-master/utilities/kinematics/dcm2space321.m | 1,104 | utf_8 | 7bf458cc45e92d50425b64db62cd4b2d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Direction cosine matrix to Space Euler 3-2-1 Angles
%
% Purpose:
% - Converts the row vector format direction cosine matrix
% representing a rotation into the equivalent Space Euler 3-2-1 Angles.
% Rotation about space fi... |
github | fdcl-gwu/2016_ACC_matlab-master | srt2quat.m | .m | 2016_ACC_matlab-master/utilities/kinematics/srt2quat.m | 859 | utf_8 | 94519e2dc53d4921edfcd35fd756bd39 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Euler Axis/Angle to Quaternion
%
% Purpose:
% - Converts a given rotation vector and rotation angle into the
% corresponding quaternion
%
% dcm = srt2quat(lambda,theta)
%
% Inputs:
% - lambda - 3 element unit vector of ... |
github | fdcl-gwu/2016_ACC_matlab-master | quat2srt.m | .m | 2016_ACC_matlab-master/utilities/kinematics/quat2srt.m | 998 | utf_8 | 98bf6d034487788bdaab99585684d0f4 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Quaternion to Euler Axis/Angle
%
% Purpose:
% - Converts a quaternion to the equivalent euler axis and angle
% describing the rotation
%
% [lambda theta] = quat2srt(quat)
%
% Inputs:
% - quat - 4 element quaternion wh... |
github | xxw1122/feature-extraction-master | LLC_coding_appr.m | .m | feature-extraction-master/util/LLC_coding_appr.m | 1,472 | utf_8 | fdb3140e185584449ee6c0e93c3cf22f | % ========================================================================
% USAGE: [Coeff]=LLC_coding_appr(B,X,knn,lambda)
% Approximated Locality-constraint Linear Coding
%
% Inputs
% B -M x d codebook, M entries in a d-dim space
% X -N x d matrix, N data points in a d-dim space
% knn ... |
github | xxw1122/feature-extraction-master | LMgist.m | .m | feature-extraction-master/features/gist/LMgist.m | 7,038 | utf_8 | f67345a5c66d7c8a167ee300f1f26998 | function [gist, param] = LMgist(D, HOMEIMAGES, param)
%
% [gist, param] = LMgist(D, HOMEIMAGES, param);
% [gist, param] = LMgist(filename, HOMEIMAGES, param);
% [gist, param] = LMgist(filename, HOMEIMAGES, param, HOMEGIST);
%
% For a set of images:
% gist = LMgist(img, [], param);
%
% When calling LMgist with a fourth ... |
github | xxw1122/feature-extraction-master | sp_find_sift_grid.m | .m | feature-extraction-master/features/sift/sp_find_sift_grid.m | 3,637 | utf_8 | 2cdb3725b597a445ab7836351371ec35 | function sift_arr = sp_find_sift_grid(I, grid_x, grid_y, patch_size, sigma_edge)
% URL: http://www.cs.illinois.edu/homes/slazebni/research/SpatialPyramid.zip
% parameters
num_angles = 8;
num_bins = 4;
num_samples = num_bins * num_bins;
alpha = 9;
if nargin < 5
sigma_edge = 1;
end
angle_step = 2 * pi... |
github | xxw1122/feature-extraction-master | ssimLabelFeatures.m | .m | feature-extraction-master/features/ssim/vggSsim/ssimLabelFeatures.m | 2,229 | utf_8 | e09a8cd04426f07170005b40fa60958b | function ssimLabelFeatures(ftrDir,vocabPath,labelDir,imgList,parms)
load(vocabPath); % Gives the variable V
for i=1:length(imgList),
IMGname=imgList{i};
onlyImgName=extractImgName(IMGname);
fprintf('Labeling ssim descriptors of %s\n',onlyImgName);
load([ftrDir onlyImgName '.mat']);
textonlab... |
github | xxw1122/feature-extraction-master | COMKMeans.m | .m | feature-extraction-master/features/ssim/vggSsim/COMKMeans.m | 2,274 | utf_8 | 32ae6165ac00f2548947723da74b388a | function [initmeans,finalmeans,dists,inds,iter]=COMKMeans(train,valid,K,NUMiter,NUMruns)
% Wrapper function which runs KMeans many times and returns the best results.
%
% [initmeans,finalmeans,dists,inds,iter]=COMKMeans(train,valid,K,NUMiter,NUMruns)
%
% Inputs:
% train - NUMdims x NUMtrainpts matrix of trainin... |
github | xxw1122/feature-extraction-master | COMuniquerand.m | .m | feature-extraction-master/features/ssim/vggSsim/COMuniquerand.m | 1,616 | utf_8 | db38aeece62604d59b794126d5baec17 | function [r,err]=COMuniquerand(N,BOUNDS)
% Function which returns a randomly generated, sorted list on N unique
% integers lying in the closed interval specified by BOUNDS.
%
% [r,err]=COMuniquerand(N,BOUNDS)
%
% Inputs:
% N - The number of random points required.
% BOUNDS - The range in which they must lie.
%... |
github | xxw1122/feature-extraction-master | SSimCalFresp_draw.m | .m | feature-extraction-master/features/ssim/vggSsim/SSimCalFresp_draw.m | 7,868 | utf_8 | aafedd7d8386a0300d0865955955915a | function [resp,drawCoords,salientCoords,uniformCoords]=SSimCalFresp_draw(img,parms,allXCoords,allYCoords)
%img=TXTreadimg(imgName,parms);
[resp,drawCoords,salientCoords,uniformCoords]= ...
calcFresps(img,parms.size,parms.coRelWindowRadius,allXCoords,allYCoords,parms.numRadiiIntervals, ...
parms... |
github | lihp11/predictability_transport-master | calc_cube_param.m | .m | predictability_transport-master/calc_cube_param.m | 1,974 | utf_8 | 9a31345faf61dceed0005805027b8aa8 | %% calc cube's unreliability params
function cubes = calc_cube_param(cubes,avg_tt,bin_length,mini,maxi,interval,alpha)
% input:(1)avg_tt:cellarray,num=num of cube,avg_tt(i):array(288,577),
% content=tt of ith cube;(2)cubes: struct array:1-[]
% mini:vector,num = num of cubes,the num vector's min
% maxi:vector,num = ... |
github | lihp11/predictability_transport-master | plot_cube_predict.m | .m | predictability_transport-master/plot_cube_predict.m | 1,480 | utf_8 | b0f234fc903dfd70fa61f6bb517c7567 | %% plot link-time color map at nth_wkday
function plot_cube_predict(cubes,nth_wkday,road_namestr)
index_str = {'lowpredict','uppredict','std','cov','BI','MI','PR','lam_skew','lam_var'};
for nth_cube = 1:length(shuffled_link)
for nth_index=1:length(index_str)
eval(['link_',index_str{nth_index},'(:,nth_cube) =... |
github | lihp11/predictability_transport-master | get_fragindex.m | .m | predictability_transport-master/get_fragindex.m | 1,532 | ibm852 | 361158e35bf829cfdd59ea1e9c9b8bdd | %% data longlat and fragpoints to index_frag index
function index_frag = get_fragindex(longlat,frag_points)
%longlat:rownum=many(m),c1=long,c2=lat
%frag_points:rownum=num of frags+1,c1=long,c2=lat
%index_frag:vector,rownum=m
m = length(longlat);
%single = rownum of data
index_frag = zeros(m,1);
%index_frag:vecto... |
github | lihp11/predictability_transport-master | tsplot.m | .m | predictability_transport-master/tsplot.m | 1,724 | utf_8 | ef663a81ecefdd205c79c758f559d359 | %% timespace plot with frag longlat and tsmat
function tsplot(frag_points,tsmat)
%frag_points:rownum=num of frags+1,c1=long,c2=lat
%tsmat:rownum=num_interval,cnum=num of frags,
%content=values(speed) to display
num_interval = size(tsmat,1);
%single=num of interval=rownum of tsmat
num_roadfrag = length(frag_points... |
github | lihp11/predictability_transport-master | plot_frag_predict.m | .m | predictability_transport-master/plot_frag_predict.m | 1,488 | utf_8 | ee5a83b95961c52c4e03b19f98716ea6 | %% plot link-time color map at nth_wkday
function plot_frag_predict(shuffled_link,nth_wkday,road_namestr)
index_str = {'lowpredict','uppredict','std','cov','BI','MI','PR','lam_skew','lam_var'};
for nth_link = 1:length(shuffled_link)
for nth_index=1:length(index_str)
eval(['link_',index_str{nth_index},'(:,nth... |
github | lihp11/predictability_transport-master | vec2unreliability.m | .m | predictability_transport-master/vec2unreliability.m | 1,202 | utf_8 | 5152ced46ceec7cff51403c80c2665dd | %% vector, num of symbols, interval alpha,for lowpredict to param struct
% param : struct(all field is single): f1=lowpredict,f2=uppredict,
% f3=std,f4=cov,f5=BI(buffer index),f6=MI(misery index),f7=probablity of tt>alpha*tt50
% f8=lam_skew,f9=lam_var,f10=UIr
function param = vec2unreliability(vector,bin_length,mini,ma... |
github | lihp11/predictability_transport-master | plot_line_road.m | .m | predictability_transport-master/plot_line_road.m | 490 | utf_8 | a3a2297cbbbdd8fd1589f5da1fd9d5b9 | %% plot line_road from link_struct_array and output line_longlat
function line_longlat = plot_line_road(shuffled_link,matname)
line_longlat = shuffled_link(1).longlat;
for nth_link = 2:length(shuffled_link)
line_longlat = [line_longlat;shuffled_link(nth_link).longlat(2:end,:)]; %delete repeted start_no... |
github | lihp11/predictability_transport-master | calc_link_road_time.m | .m | predictability_transport-master/calc_link_road_time.m | 2,317 | utf_8 | 527e77a00d85a0faa9edd65ca9d9a205 | %% calc link's time and road's time
function [avg_tt,tt_sum,shuffled_link] = calc_link_road_time(data_source,shuffled_link)
% data_source:rownum=many,c1=mesh,c2=roadid,c3=year,
%c4=month,c5=day,c6=nth_minute,c7=speed
%shuffled_link: struct array:1-longlat(array),2-mesh(num),3-road_id
%4-node_start,5-node_end,6-road... |
github | lihp11/predictability_transport-master | calc_road_param.m | .m | predictability_transport-master/calc_road_param.m | 1,233 | utf_8 | b753c89a0c15fab3e951fb1f0a3d65ad | %% calc link's unreliability params
function param = calc_road_param(tt_sum,bin_length,mini,maxi,interval,alpha)
tt_sum_w4 = tt_sum(:,1:7:end);
tt_sum_w5 = tt_sum(:,2:7:end);
tt_sum_w6 = tt_sum(:,3:7:end);
tt_sum_w7 = tt_sum(:,4:7:end);
tt_sum_w8 = tt_sum; % all year includs all weekday
tt_sum_w1 = tt_sum(:,5:7:e... |
github | lihp11/predictability_transport-master | calc_link_param.m | .m | predictability_transport-master/calc_link_param.m | 2,232 | utf_8 | 52d5e52297f2b6063f2e49f821d58091 | %% calc link's unreliability params
function shuffled_link = calc_link_param(shuffled_link,avg_tt,bin_length,mini,maxi,interval,alpha)
% input:(1)avg_tt:cellarray,num=num of link,avg_tt(i):array(288,577),
% content=tt of ith link;(2)shuffled_link: struct array:1-longlat(array)
% ,2-mesh(num),3-road_id,4-node_start,5... |
github | lihp11/predictability_transport-master | plot_road_predictnorm.m | .m | predictability_transport-master/plot_road_predictnorm.m | 2,511 | utf_8 | a77fbe906d90ed0092edc52d7b6e0bfb | %% plot time-weekday color map for total road
function plot_road_predictnorm(road_params,road_namestr)
%road_params:struct array,rnum=288(5min),cum=8(7 days in week and total day for 8)
%road_params(i,j):struct:f1-f9 = index_str's param (single)
index_str = {'lowpredict','uppredict','std','cov','BI','MI','PR','lam_s... |
github | lihp11/predictability_transport-master | midmif_to_longlat.m | .m | predictability_transport-master/midmif_to_longlat.m | 2,867 | utf_8 | 93f114565ff7c7d23c4590020b41d10f | %% mif to link longlat
function midmif_to_longlat(folder,mid_cnum)
file = dir([folder,'*.mif']);
%struct vector:num=num of mif files,f1=name(char_array),f2=date(char_array)
%f3=bytes(num),f4=isdir(bool),f5=datenum(date)
num_file = length(file); %sigle=num of mif files
for nth_file = 1:num_file
filename = file... |
github | lihp11/predictability_transport-master | calc_cube_road_time.m | .m | predictability_transport-master/calc_cube_road_time.m | 2,622 | utf_8 | 2a643c32bc09b498bcd5ff0ef5117151 | %% calc avg_tt cellarray and tt_sum for each road
function [avg_tt,tt_sum] = calc_cube_road_time(num_fetch,tbname_speed)
% num_fetch:num of each db fetch
% tbname_speed:tablename from db,c1~c4:year,month,day,nth_5min,c5=speed,c6=nth_100m
% avg_tt:cellarray,num=num of cube,avg_tt(i):array(288,517days of data),
% ... |
github | lihp11/predictability_transport-master | plot_road_predict.m | .m | predictability_transport-master/plot_road_predict.m | 2,353 | utf_8 | 8928b0477ab722602c920ec7b968463c | %% plot time-weekday color map for total road
function plot_road_predict(road_params,road_namestr)
%road_params:struct array,rnum=288(5min),cum=8(7 days in week and total day for 8)
%road_params(i,j):struct:f1-f9 = index_str's param (single)
index_str = {'lowpredict','uppredict','std','cov','BI','MI','PR','lam_skew'... |
github | lihp11/predictability_transport-master | plot_ring_road.m | .m | predictability_transport-master/plot_ring_road.m | 595 | utf_8 | f4ebb76ee98a919f43654fb69ef00a62 | %% plot ring_road from link_struct_array and output ring_longlat
function ring_longlat = plot_ring_road(shuffled_link,matname)
ring_longlat = shuffled_link(1).longlat;
for nth_link = 2:length(shuffled_link)
ring_longlat = [ring_longlat;shuffled_link(nth_link).longlat(2:end,:)]; %delete repeted start_no... |
github | lihp11/predictability_transport-master | link_connect.m | .m | predictability_transport-master/link_connect.m | 2,270 | utf_8 | f037c6a5d006ae378034c3fcd31d35d9 | %% link struct_array to shuffled_link without taking ring into accout
function newlink = link_connect(link)
% arrange rows of link
newlink = link(1);
remain_link = link(2:end);
for nth_row = 1:(length(link)-1)
shiftrow = 1;
while ~(issame_points(remain_link(shiftrow).longlat(1,:),newlink(1).longlat(1,:)) || ...
... |
github | lihp11/predictability_transport-master | TS_LinkOperationsWithMasters.m | .m | predictability_transport-master/code_github]/nbit复杂度计算/Calculation/TS_LinkOperationsWithMasters.m | 2,723 | utf_8 | 2e8d3459366840a714f72af25065263f | function [Operations, MasterOperations] = TS_LinkOperationsWithMasters(Operations,MasterOperations)
% TS_LinkOperationsWithMasters Link Operations with MasterOperations using Label field
%
% ------------------------------------------------------------------------------
% Copyright (C) 2015, Ben D. Fulcher <ben.d.fu... |
github | lihp11/predictability_transport-master | NL_DVV.m | .m | predictability_transport-master/code_github]/nbit复杂度计算/Operations/NL_DVV.m | 6,937 | utf_8 | 00dd9dbab7b7c1b3046bc1a4898a462f | function out = NL_DVV(x,m,numDVs,nd,Ntv,numSurr,randomSeed)
% NL_DVV Delay Vector Variance method for real and complex signals.
%
% Uses predictability of the signal in phase space to characterize the
% time series.
%
% This function uses the original code from the DVV toolbox to do the computation
% and produces stat... |
github | lihp11/predictability_transport-master | WL_coeffs.m | .m | predictability_transport-master/code_github]/nbit复杂度计算/Operations/WL_coeffs.m | 3,642 | utf_8 | 542f15edaa6dafa61d62f34d0b0e7ee0 | function out = WL_coeffs(y, wname, level)
% WL_coeffs Wavelet decomposition of the time series.
%
% Performs a wavelet decomposition of the time series using a given wavelet at a
% given level and returns a set of statistics on the coefficients obtained.
%
% Uses Matlab's Wavelet Toolbox.
%
%---INPUTS:
% y, the inp... |
github | lihp11/predictability_transport-master | CP_l1pwc_sweep_lambda.m | .m | predictability_transport-master/code_github]/nbit复杂度计算/Operations/CP_l1pwc_sweep_lambda.m | 4,334 | utf_8 | 2c134faf92850dbd090aa22f6e6052a3 | function out = CP_l1pwc_sweep_lambda(y,lambdar)
% CP_l1pwc_sweep_lambda Dependence of step detection on regularization parameter.
%
% Gives information about discrete steps in the signal across a range of
% regularization parameters lambda, using the function l1pwc from Max Little's
% step detection toolkit.
%
% cf... |
github | lihp11/predictability_transport-master | SB_MotifThree.m | .m | predictability_transport-master/code_github]/nbit复杂度计算/Operations/SB_MotifThree.m | 7,638 | utf_8 | 7ff80106832fce52ee5929bb5c5640b3 | function out = SB_MotifThree(y,cgHow)
% SB_MotifThree Motifs in a coarse-graining of a time series to a 3-letter alphabet
%
% (As SB_MotifTwo but with a 3-letter alphabet)
%
%---INPUTS:
% y, time series to analyze
% cgHow, the coarse-graining method to use:
% (i) 'quantile': equiprobable alphabet by time-seri... |
github | lihp11/predictability_transport-master | NL_TISEAN_fnn.m | .m | predictability_transport-master/code_github]/nbit复杂度计算/Operations/NL_TISEAN_fnn.m | 6,938 | utf_8 | d9e8956034d491133237b17a3567332f | function out = NL_TISEAN_fnn(y,tau,maxm,theilerWin,justBest,bestp)
% NL_TISEAN_fnn false nearest neighbors of a time series.
%
%---INPUTS:
% y, the input time series
% tau, the time delay
% maxm, the maximum embedding dimension
% theilerWin, the Theiler window
% justBest, if 1 just outputs a scalar estimate of embe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.