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 | brennanyama/robotx-master | subsref.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/subsref.m | 3,987 | utf_8 | 278306b42a8ab93fa47e1b7062d8fa9f |
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
%... |
github | brennanyama/robotx-master | coriolis.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/coriolis.m | 3,406 | utf_8 | 752fc02f5d2bb2dafac400185d4ff702 | %SerialLink.coriolis Coriolis matrix
%
% C = R.CORIOLIS(Q, QD) is the NxN Coriolis/centripetal matrix for
% the robot in configuration Q and velocity QD, where N is the number of
% joints. The product C*QD is the vector of joint force/torque due to velocity
% coupling. The diagonal elements are due to centripetal eff... |
github | brennanyama/robotx-master | accel.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/accel.m | 2,889 | utf_8 | 4cab37c2a136ea9cb47620898bafff08 | %SerialLink.accel Manipulator forward dynamics
%
% QDD = R.accel(Q, QD, TORQUE) is a vector (Nx1) of joint accelerations that result
% from applying the actuator force/torque to the manipulator robot in state Q and QD.
% If Q, QD, TORQUE are matrices with M rows, then QDD is a matrix with M rows
% of acceleration corr... |
github | brennanyama/robotx-master | itorque.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/itorque.m | 1,522 | utf_8 | cc3d52dd02430ec8e7e51b019dd6000a | %SerialLink.itorque Inertia torque
%
% TAUI = R.itorque(Q, QDD) is the inertia force/torque N-vector at the specified
% joint configuration Q and acceleration QDD, that is, TAUI = INERTIA(Q)*QDD.
%
% If Q and QDD are row vectors, the result is a row vector of joint torques.
% If Q and QDD are matrices, each row is inte... |
github | brennanyama/robotx-master | rne_mdh.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/rne_mdh.m | 4,445 | utf_8 | 336e755459929378f84bea818a23b08b |
%SERIALLINK.RNE_MDH Compute inverse dynamics via recursive Newton-Euler formulation
%
% Recursive Newton-Euler for modified Denavit-Hartenberg notation. Is invoked by
% R.RNE().
%
% See also SERIALLINK.RNE.
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke... |
github | brennanyama/robotx-master | mtimes.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/mtimes.m | 1,843 | utf_8 | 6c52eb4cccc6f967d5e7786b9ed721e1 | % robot objects can be multiplied r1*r2 which is mechanically equivalent
% to mounting robot r2 on the end of robot r1.
%
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free softw... |
github | brennanyama/robotx-master | perturb.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/perturb.m | 1,687 | utf_8 | 021a5522f737b29a05c4b03005bcd14c | %SerialLink.perturb Perturb robot parameters
%
% RP = R.perturb(P) is a new robot object in which the dynamic parameters (link
% mass and inertia) have been perturbed. The perturbation is multiplicative so
% that values are multiplied by random numbers in the interval (1-P) to (1+P).
% The name string of the perturbe... |
github | brennanyama/robotx-master | cinertia.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/cinertia.m | 1,262 | utf_8 | 4b7612402dafd0f93bce5f1d520ee65f | %SerialLink.cinertia Cartesian inertia matrix
%
% M = R.cinertia(Q) is the NxN Cartesian (operational space) inertia matrix which relates
% Cartesian force/torque to Cartesian acceleration at the joint configuration Q, and N
% is the number of robot joints.
%
% See also SerialLink.inertia, SerialLink.rne.
% Ryan Ste... |
github | brennanyama/robotx-master | fkine.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/fkine.m | 2,043 | utf_8 | 8ed8bfe464ffe53e36fe550ac805285e | %SerialLink.fkine Forward kinematics
%
% T = R.fkine(Q) is the pose of the robot end-effector as a homogeneous
% transformation for the joint configuration Q. For an N-axis manipulator
% Q is an N-vector.
%
% If Q is a matrix, the M rows are interpretted as the generalized
% joint coordinates for a sequence of poi... |
github | brennanyama/robotx-master | rne.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/rne.m | 2,475 | utf_8 | 02a4a285327714868d309bb0a561c56a | %SerialLink.rne Inverse dynamics
%
% TAU = R.rne(Q, QD, QDD) is the joint torque required for the robot R
% to achieve the specified joint position Q, velocity QD and acceleration QDD.
%
% TAU = R.rne(Q, QD, QDD, GRAV) as above but overriding the gravitational
% acceleration vector in the robot object R.
%
% TAU = R.r... |
github | brennanyama/robotx-master | teach.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/teach.m | 10,728 | utf_8 | 47647b268a77098aa9ff5d1fa3f5dda0 | %SerialLink.teach Graphical teach pendant
%
% R.teach() drive a graphical robot by means of a graphical slider panel.
% If no graphical robot exists one is created in a new window. Otherwise
% all current instanes of the graphical robots are driven.
%
% R.teach(Q) specifies the initial joint angle, otherwise it is tak... |
github | brennanyama/robotx-master | maniplty.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/maniplty.m | 3,592 | utf_8 | db86403e6ccb78655d8feed3f696f702 | %SerialLink.MANIPLTY Manipulability measure
%
% M = R.maniplty(Q, OPTIONS) is the manipulability index measure for the robot
% at the joint configuration Q. It indicates dexterity, how isotropic the
% robot's motion is with respect to the 6 degrees of Cartesian motion.
% The measure is low when the manipulator is clos... |
github | brennanyama/robotx-master | inertia.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/inertia.m | 1,944 | utf_8 | 4bda3471b7775960cef1f31a8b0b2dcb | %SerialLink.INERTIA Manipulator inertia matrix
%
% I = R.inertia(Q) is the NxN symmetric joint inertia matrix which relates
% joint torque to joint acceleration for the robot at joint configuration Q.
% The diagonal elements I(j,j) are the inertia seen by joint actuator j.
% The off-diagonal elements are coupling iner... |
github | brennanyama/robotx-master | fdyn.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@SerialLink/fdyn.m | 3,481 | utf_8 | 2cf029c0bca1d90d2a4cb9ea9ed78ddb | %SerialLink.fdyn Integrate forward dynamics
%
% [T,Q,QD] = R.fdyn(T1, TORQFUN) integrates the dynamics of the robot over
% the time interval 0 to T and returns vectors of time TI, joint position Q
% and joint velocity QD. The initial joint position and velocity are zero.
% The torque applied to the joints is compute... |
github | brennanyama/robotx-master | dot.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/dot.m | 975 | utf_8 | 3375d0303f00d08c547c14e09ad7e650 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | norm.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/norm.m | 1,010 | utf_8 | 2cc5050994d7594e3e5a162a2965b6b7 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | Quaternion.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/Quaternion.m | 4,034 | utf_8 | f2afd42f26b30a934c594f8e7fb16791 | %QUATERNION constructor for quaternion objects
%
% QUATERNION([s v1 v2 v3]) from 4 elements
% QUATERNION(v, theta) from vector plus angle
% QUATERNION(R) from a 3x3 or 4x4 matrix
% QUATERNION(q) from another quaternion
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-201... |
github | brennanyama/robotx-master | display.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/display.m | 1,029 | utf_8 | 5005939253bba5057986ba5e99fcc973 | %DISPLAY display the value of a quaternion object
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the G... |
github | brennanyama/robotx-master | interp.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/interp.m | 1,994 | utf_8 | 478707148e660021db0eb8bdeca5d471 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | plot.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/plot.m | 1,334 | utf_8 | a911420db26f46c33659a9d91a300906 | %PLOT plot a quaternion object as a rotated coordinate frame
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the ter... |
github | brennanyama/robotx-master | double.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/double.m | 1,047 | utf_8 | 9437b4d4c74466f80c02cadf5f97b93a | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | scale.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/scale.m | 1,979 | utf_8 | 727f60415a6091dddff994499196db48 |
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
%... |
github | brennanyama/robotx-master | mrdivide.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/mrdivide.m | 1,267 | utf_8 | 48371bc5e28830bbb3fa39a2da52726a | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | qinterp.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/qinterp.m | 1,727 | utf_8 | 2e5be9d99ede2b9ce58a5d2b7db344fd | %QINTERP Interpolate rotations expressed by quaternion objects
%
% QI = qinterp(Q1, Q2, R)
%
% Return a unit-quaternion that interpolates between Q1 and Q2 as R moves
% from 0 to 1. This is a spherical linear interpolation (slerp) that can
% be interpretted as interpolation along a great circle arc on a sphere.
%
% If... |
github | brennanyama/robotx-master | char.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/char.m | 1,040 | utf_8 | b71a701e2d387683b513855d663de42b | %CHAR create string representation of quaternion object
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of... |
github | brennanyama/robotx-master | unit.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/unit.m | 991 | utf_8 | b080d98841b256adbca1c8a02752bd15 |
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
%... |
github | brennanyama/robotx-master | subsref.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/subsref.m | 1,930 | utf_8 | 64b5d237e94c65cd19baefc95598c973 |
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
%... |
github | brennanyama/robotx-master | q2tr.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/q2tr.m | 1,152 | utf_8 | 7b63387f00a3840099667a9f614ce068 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | plus.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/plus.m | 1,072 | utf_8 | 6fa16fb3bff1ba25f20bfea9d59927c5 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | mpower.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/mpower.m | 1,334 | utf_8 | 6bf863c884e2237c0f90c891eeed193e | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | mtimes.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/mtimes.m | 2,424 | utf_8 | 35e67193c8700ca8f77d8f9b788b5005 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | inv.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/inv.m | 1,017 | utf_8 | fd6512766195091d2142c19983c3c0c0 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | minus.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Quaternion/minus.m | 1,097 | utf_8 | b40b3237701218e2368ca6ab5d2e7218 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | display.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/display.m | 992 | utf_8 | 1744ef8c7924b5841a47207003535695 | %DISPLAY display the value of a LINK object
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Les... |
github | brennanyama/robotx-master | show.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/show.m | 1,226 | utf_8 | c90fb8c0e8972f93ea8c30b673633d2e | %SHOW show all parameters of LINK object
%
% SHOW(link)
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of... |
github | brennanyama/robotx-master | subsasgn.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/subsasgn.m | 2,843 | utf_8 | 9a4a1d65fc4137471a6bd218fbd2a960 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | char.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/char.m | 2,817 | utf_8 | a0694168712bc20d14a58df87d0cce09 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | friction.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/friction.m | 1,399 | utf_8 | fd114474c00d7a5a4850ddb1f11e11af | %FRICTION compute friction torque on the LINK object
%
% TAU = FRICTION(LINK, QD)
%
% Return the friction torque on the link moving at speed QD. Depending
% on fields in the LINK object viscous and/or Coulomb friction
% are computed.
%
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) ... |
github | brennanyama/robotx-master | nofriction.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/nofriction.m | 1,338 | utf_8 | af30540d9fe008e95184816cb1baaea8 | %NOFRICTION return link object with zero friction
%
% LINK = NOFRICTION(LINK)
%
%
% Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or mod... |
github | brennanyama/robotx-master | subsref.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/subsref.m | 6,453 | utf_8 | 0251a70ca1dfd3e28127b24e79472d31 | % Ryan Steindl based on Robotics Toolbox for MATLAB (v6 and v9)
%
% Copyright (C) 1993-2011, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for MATLAB (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% ... |
github | brennanyama/robotx-master | Link.m | .m | robotx-master/pathplanning/Version_02/robot/Octave/@Link/Link.m | 4,156 | utf_8 | 39a5ccb999393609550d38e629c54d5b | %LINK create a new LINK object
%
% A LINK object holds all information related to a robot link such as
% kinematics of the joint, rigid-body inertial parameters, motor and
% transmission parameters.
%
% LINK
% LINK(link)
%
% Create a default link, or a clone of the passed link.
%
% A = LINK(q)
%
% Compute the link tran... |
github | brennanyama/robotx-master | polar_sfunc.m | .m | robotx-master/pathplanning/Version_02/simulink/polar_sfunc.m | 4,897 | utf_8 | e94a62691fcfd183c87cde7beb3d91ee | function movepoint_sfunc(block)
block.NumInputPorts = 1;
block.NumOutputPorts = 1;
% Setup port properties to be inherited or dynamic
block.SetPreCompInpPortInfoToDynamic;
block.SetPreCompOutPortInfoToDynamic;
% Override input port properties
block.InputPort(1).DatatypeID = 0; % double
block.Inp... |
github | brennanyama/robotx-master | slplotbot.m | .m | robotx-master/pathplanning/Version_02/simulink/slplotbot.m | 1,813 | utf_8 | 59bcb601aa44c722ca1f012179a77193 | %SLPLOTBOT S-function for robot animation
%
% This is the S-function for animating the robot. It assumes input
% data u to be the joint angles q.
%
% Implemented as an S-function so as to update display at the end of
% each Simulink major integration step.
function [sys,x0,str,ts] = splotbot(t,x,u,flag, robot, fps, h... |
github | brennanyama/robotx-master | quadrotor_dynamics.m | .m | robotx-master/pathplanning/Version_02/simulink/quadrotor_dynamics.m | 9,700 | utf_8 | da0727924c94378980ff1f5630f5be41 |
function [sys,x0,str,ts] = quadrotor_dynamics(t,x,u,flag, quad)
% Flyer2dynamics lovingly coded by Paul Pounds, first coded 12/4/04
% A simulation of idealised X-4 Flyer II flight dynamics.
% version 2.0 2005 modified to be compatible with latest version of Matlab
% version 3.0 2006 fixed rotation matr... |
github | brennanyama/robotx-master | quadrotor_plot.m | .m | robotx-master/pathplanning/Version_02/simulink/quadrotor_plot.m | 6,470 | utf_8 | fc1ec32a284f9ac59ab4a09689b03a21 |
% Copyright (C) 1993-2014, by Peter I. Corke
%
% This file is part of The Robotics Toolbox for Matlab (RTB).
%
% RTB is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License as published by
% the Free Software Foundation, either version 3 of the License, or... |
github | brennanyama/robotx-master | nrotor_dynamics.m | .m | robotx-master/pathplanning/Version_02/simulink/nrotor_dynamics.m | 9,893 | utf_8 | 23fda47131f8169abf23932db268fabc |
function [sys,x0,str,ts] = nrotor_dynamics(t,x,u,flag, vehicle)
% Flyer2dynamics lovingly coded by Paul Pounds, first coded 12/4/04
% A simulation of idealised X-4 Flyer II flight dynamics.
% version 2.0 2005 modified to be compatible with latest version of Matlab
% version 3.0 2006 fixed rotation matr... |
github | brennanyama/robotx-master | slaccel.m | .m | robotx-master/pathplanning/Version_02/simulink/slaccel.m | 1,906 | utf_8 | d3eebb9cf75ec52f5fc312348463ef87 | %SLACCEL S-function for robot acceleration
%
% This is the S-function for computing robot acceleration. It assumes input
% data u to be the vector [q qd tau].
%
% Implemented as an S-function to get around vector sizing problem with
% Simulink 4.
function [sys, x0, str, ts] = slaccel(t, x, u, flag, robot)
switch flag... |
github | brennanyama/robotx-master | waypoint_controller_and_simulation.m | .m | robotx-master/waypoint_controller/waypoint_controller_and_simulation.m | 72,712 | utf_8 | a2bd88d54b1c5b74cdfe415c7ea99764 | % Created by: Brennan Yamamoto
% Last update: 2016.11.25
% Do not distribute. Do not duplicate.
function waypoint_controller_and_simulation_discrete_calculus()
% Clear workspace
close all;
clc;
% Simulation setup
[time_params,lumped_params,geometry_params,pid_gains,control_tolerances,x,y,sn... |
github | brennanyama/robotx-master | waypoint_position_controller_and_simulation.m | .m | robotx-master/waypoint_controller/old/waypoint_position_controller_and_simulation.m | 22,016 | utf_8 | 72864cf0faeb4c56ecdfe3162ac174b9 | function waypoint_position_controller_and_simulation()
% Clear workspace
clear all;
close all;
clc;
% Simulation setup
[time_params,lumped_params,geometry_params,pid_gains,control_tolerances,control_maximums,x,u,up,ui,ud,error,int,behavior] = sim_setup();
% Set goal variables
... |
github | brennanyama/robotx-master | full_forward.m | .m | robotx-master/remote_control_1/matlab_basics/full_forward.m | 1,010 | utf_8 | 9c74ff9eca19116eef93fd402a80bc4c | function ros_start_end()
clear all;
close all;
clc;
rosinit;
for k = 1:1:50
full_go_forward(k);
end
rosshutdown;
end
function full_go_forward(k)
disp('current iteration: ');
disp(k);
T=[60;60;60;60] % 0 should be full reverse, 50 should be neutral, 100 should be full forward
cha... |
github | brennanyama/robotx-master | four_servo_w_bumper_control.m | .m | robotx-master/four_servo_w_bumper_control/four_servo_w_bumper_control.m | 6,256 | utf_8 | 9ca22cfb10e449534a47542db80c71d4 | function four_servo_w_bumper_control()
% clear workspace and shutdown Matlab instance of ROS if already running
clear all;
rosshutdown;
% Connect to ROS
rosinit('localhost');
% Bump sensor pin numbers
bQ1l = 34;
bQ1r = 30;
bQ2l = 32;
bQ2r = 36;
bQ3l = 26;
bQ3r = 24... |
github | brennanyama/robotx-master | heading_velocity_controller_and_simulation.m | .m | robotx-master/BMBF_preliminary/heading_velocity_controller_and_simulation.m | 8,601 | utf_8 | 81be24fb92232d345b832f542ee0bc19 | % To do: should be modified to allow the goal-vars to change on
% the fly.
function heading_velocity_controller_and_simulation()
% Clear workspace
clear all;
close all;
clc;
% Simulation setup
[dt,tend,N,m,I,bu,bv,bpsi,theta,w,l,K,x,T,u,up,ui,ud,error,int] = sim_setup();
% Set g... |
github | Kinoko-Huang/project-master | read_cctm.m | .m | project-master/m_files/read_cctm.m | 1,607 | utf_8 | 1d1faa521d7c543a281818a20663498c | % function x = read_cctm(flnm,var)
% use matlab 2009 nc libs
% example : matrix = read_cctm('/home/yaoteng/joke.ncf','PM10');
function data = read_cctm( flnm, var_nm )
file_id = netcdf.open( flnm, 'NC_NOWRITE' );
switch var_nm
case 'OC'
var_list = {'AALKJ';'AXYL1J';'AXYL2J';'AXYL3J';...
'ATOL1J';'ATOL2J';'ATOL3J... |
github | Kinoko-Huang/project-master | draw_wrf_complete.m | .m | project-master/m_files/draw_wrf_complete.m | 39,532 | utf_8 | 2f3fbc2a9163a0ceb3d16032be7166f9 | function is_drawed =draw_wrf_xuguo( beg_date, end_date )
% usage draw_wrf_xuguo( '2013121512','2013121912' )
% v0.7 Feb-9, 2015
% input session
% which to plot
is_wind_plotted = 1;
is_temp_plotted = 1;
is_pblh_plotted = 0;
is_rh_plotted = 1;
is_qv_plotted = 0;
% RH
rh_ymin = 40;
rh_ymax = 100;
obs_rh_flnm = 'obs_data/... |
github | ColumbiaDVMM/Anchor-Graph-Hashing-master | TwoLayerAGH_Train.m | .m | Anchor-Graph-Hashing-master/TwoLayerAGH_Train.m | 2,467 | utf_8 | ee828e622f64eb52bebdbac454cef21b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [Y, W, Thres, sigma] = TwoLayerAGH_Train(X, Anchor, r, s, sigma)
%
% Two-Layer Anchor Graph Hashing Training
% Written by Wei Liu (wliu@ee.columbia.edu)
% X = nXdim input data
% Anchor = mXdim anchor points (m<<n)
% r = number of ha... |
github | ColumbiaDVMM/Anchor-Graph-Hashing-master | TwoLayerAGH_Test.m | .m | Anchor-Graph-Hashing-master/TwoLayerAGH_Test.m | 1,374 | utf_8 | d4c38a6b9c321345614984d0cd5978f5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Y = TwoLayerAGH_Test(X, Anchor, W, Thres, s, sigma)
%
% Two-Layer Anchor Graph Hashing Test
% Written by Wei Liu (wliu@ee.columbia.edu)
% X = nXdim input data
% Anchor = mXdim anchor points (m<<n)
% W = mX(r/2) projection matrix in ... |
github | ColumbiaDVMM/Anchor-Graph-Hashing-master | OneLayerAGH_Test.m | .m | Anchor-Graph-Hashing-master/OneLayerAGH_Test.m | 1,078 | utf_8 | 2e6433a6f817ec420f7d03ad4189501b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Y = OneLayerAGH_Test(X, Anchor, W, s, sigma)
%
% One-Layer Anchor Graph Hashing Test
% Written by Wei Liu (wliu@ee.columbia.edu)
% X = nXdim input data
% Anchor = mXdim anchor points (m<<n)
% W = mXr projection matrix in spectral sp... |
github | ColumbiaDVMM/Anchor-Graph-Hashing-master | compactbit.m | .m | Anchor-Graph-Hashing-master/compactbit.m | 475 | utf_8 | 4596002d6b4b65d77b0e4f0fd6ba58b8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function cb = compactbit(b)
%
% Written by Rob Fergus
% b = bits array
% cb = compacted string of bits (using words of 'word' bits)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[nSamples nbits] = size(b);
nwords ... |
github | ColumbiaDVMM/Anchor-Graph-Hashing-master | OneLayerAGH_Train.m | .m | Anchor-Graph-Hashing-master/OneLayerAGH_Train.m | 1,711 | utf_8 | 502a5a1a22bfa8a70aaec46703a7b278 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [Y, W, sigma] = OneLayerAGH_Train(X, Anchor, r, s, sigma)
%
% One-Layer Anchor Graph Hashing Training
% Written by Wei Liu (wliu@ee.columbia.edu)
% X = nXdim input data
% Anchor = mXdim anchor points (m<<n)
% r = number of hash bits... |
github | ColumbiaDVMM/Anchor-Graph-Hashing-master | hammingDist.m | .m | Anchor-Graph-Hashing-master/hammingDist.m | 1,683 | utf_8 | b3b0c5d992de3ce868c6d2f9e78424cb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Dh=hammingDist(B1, B2)
%
% Written by Rob Fergus
% Compute hamming distance between two sets of samples (B1, B2)
%
% Dh=hammingDist(B1, B2);
%
% Input
% B1, B2: compact bit vectors. Each datapoint is one row.
% size(B1) = [nd... |
github | cw659/watchnpatch-master | mhind.m | .m | watchnpatch-master/Catm/util/mhind.m | 528 | utf_8 | 449a9b05b538814b749d893c9877b0ad | %Metropolis-Hastings: Independence Sampler
function [v logpi arind] = mhind(v, A, u, lambdaV, nkd, K)
%Sample new value for v
vNew = mvnrand(A*u, 1/lambdaV*eye(K-1));
%calculate invariant distribution
nkd2 = flipud(cumsum(flipud(nkd(2:K))));
phiold = nkd(1:K-1) .* -log(1+exp(-v)) + nkd2 .* -log(1 + exp(v));
... |
github | cw659/watchnpatch-master | mhind2.m | .m | watchnpatch-master/Catm/util/mhind2.m | 513 | utf_8 | 6f341991fdc177a6a796e8c83a14d8ab | %Metropolis-Hastings: Independence Sampler
function [v logpi arind] = mhind2(v, u, lambdaV, nkd, K)
%Sample new value for v
vNew = normrnd(u, lambdaV);
%calculate invariant distribution
nkd2 = flipud(cumsum(flipud(nkd(2:K))));
phiold = nkd(1:K-1) .* -log(1+exp(-v)) + nkd2 .* -log(1 + exp(v));
phinew = nkd(1:... |
github | cw659/watchnpatch-master | mhind3.m | .m | watchnpatch-master/Catm/util/mhind3.m | 516 | utf_8 | c10dd264d7c0d105918b3560e2b35320 | %Metropolis-Hastings: Independence Sampler
function [v logphi arind] = mhind3(v, u, lambdaV, nkd, K)
%Sample new value for v
vNew = mvnrand(u, lambdaV);
%calculate invariant distribution
nkd2 = flipud(cumsum(flipud(nkd(2:K))));
phiold = nkd(1:K-1) .* -log(1+exp(-v)) + nkd2 .* -log(1 + exp(v));
phinew = nkd(1... |
github | jdechalendar/pnm-generation-master | generateCylThroats.m | .m | pnm-generation-master/generateCylThroats.m | 6,185 | utf_8 | 09cc715c42ae83367a0e2d216239cf8a | function [bodies,throats,coord,adj] = generateCylThroats(bodies,dist,target, verb)
%% [bodies,throats,coord,adj] = generateCylThroats(bodies,dist,target)
% generates cylindrical throats
% Inputs are:
% - a set of bodies
% - a target distribution for the coordination number for the bodies
% - a ta... |
github | jdechalendar/pnm-generation-master | kde.m | .m | pnm-generation-master/utils/kde/kde.m | 5,629 | utf_8 | 3e2bd285297fe3ee3a2e8bc3fe7b3c00 | function [bandwidth,density,xmesh,cdf]=kde(data,n,MIN,MAX)
% Reliable and extremely fast kernel density estimator for one-dimensional data;
% Gaussian kernel is assumed and the bandwidth is chosen automatically;
% Unlike many other implementations, this one is immune to problems
% caused by mul... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | addContextMenu.m | .m | DIV_OpenDSDrivingTaskGenerator-master/addContextMenu.m | 4,135 | utf_8 | 3329aa7d8639e59d706395191c630d09 | function addContextMenu(jTree, hMenu)
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
% hMenu is the main menu in figure's toolbar
% Prepare the context menu (note the use of HTML labels)
menuItem1 = JMenuItem('<html><b>Edit...');
menuItem2 = JMenuItem('Delete');
% Set the menu items' call... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | getElementFromSchema.m | .m | DIV_OpenDSDrivingTaskGenerator-master/getElementFromSchema.m | 1,132 | utf_8 | ac830196f1521226dc2bf385bea4257c | function [element, elementPath] = getElementFromSchema(s, fields)
elementPath = '';
element = s;
schemaFields = getSchemaPathFieldsFromActualPathFields(fields);
for i=1:length(fields)
[element, elementPath] = recursivegetElementFromSchema(element, elementPath, fields{i}, schemaFields{i});
end
end
... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | struct2xml.m | .m | DIV_OpenDSDrivingTaskGenerator-master/struct2xml.m | 7,434 | utf_8 | deb04e82c3b77be3f9ad1295304a78bb | function varargout = struct2xml( s, varargin )
%Convert a MATLAB structure into a xml file
% [ ] = struct2xml( s, file )
% xml = struct2xml( s )
%
% A structure containing:
% s.XMLname.Attributes.attrib1 = "Some value";
% s.XMLname.Element.Text = "Some text";
% s.XMLname.DifferentElement{1}.Attributes.attrib2 = "2";
%... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | getRealPathFromTreePath.m | .m | DIV_OpenDSDrivingTaskGenerator-master/getRealPathFromTreePath.m | 790 | utf_8 | 26fe538ab483c498e03a7662ecd0f820 | function realPath = getRealPathFromTreePath(treePath)
treePathComponents = treePath.getPath;
realPath = char(treePathComponents(1).toString);
for i=2:treePath.getPathCount
childInd = getLastPathComponentInd(treePathComponents(i-1:i));
realPath = strjoin({realPath, [char(treePathComponents(i).toString),'{... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | isInChoiceNode.m | .m | DIV_OpenDSDrivingTaskGenerator-master/isInChoiceNode.m | 1,607 | utf_8 | eacbab14b93cb43f33bdf8bbbb03fc3a | function [isChoiceNode, choideNode] = isInChoiceNode(s, fields)
[schemaFields, choideNode] = getRealSchemaPathFieldsFromActualPathFields(s, fields);
if length(schemaFields)>1
isChoiceNode = strcmp(schemaFields{end-1}, 'choice');
else
isChoiceNode = NaN;
end
end
function [schemaFields, parent] ... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | inputWithKeydlg.m | .m | DIV_OpenDSDrivingTaskGenerator-master/inputWithKeydlg.m | 3,030 | utf_8 | a0956ca35bae0c143cc644ffe6142fed | function Answer = inputWithKeydlg(prompt, dlg_title, defaultAns)
EditHandle=[];
nInputs = length(prompt);
Pos = getPos(nInputs);
hFig = figure(...
'Toolbar', 'none',...
'MenuBar', 'none',...
'NumberTitle', 'off',...
'WindowStyle', 'modal',...
'Name', dlg_title,...
'Visible', 'off')... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | main.m | .m | DIV_OpenDSDrivingTaskGenerator-master/main.m | 4,856 | utf_8 | 80d396731cfcca20f40016538afe70ff | function main()
global OutputFile Trees hRoots hMenu simplifiedSchema schema Settings
close all;
addpath('./XML_Structures');
% load('schema.mat');
load('schema.4.0.mat');
simplifiedSchema = rmfield(schema, {'Attributes', 'simpleType'});
% Initialize Global structures
Settings.drivingTaskName = '';
% Gen... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | loadStructure.m | .m | DIV_OpenDSDrivingTaskGenerator-master/loadStructure.m | 3,084 | utf_8 | c6d4cb9bbe622b517e4f0ce440324536 | function loadStructure(varargin)
global OutputFile Trees
load('save.mat');
elementsToCreate = getElementsToCreate(OutputFile);
fields = fieldnames(OutputFile);
% for each tree
for i=1:length(fields)
% If the current element has required children, add them as well
for j=1:length(elementsToCreat... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | exportXML.m | .m | DIV_OpenDSDrivingTaskGenerator-master/exportXML.m | 1,895 | utf_8 | 0618ed4a580f80ef7fd780f4de9ad629 | function exportXML(varargin)
global OutputFile schema Settings
if isempty(Settings.drivingTaskName)
prompt = 'Please insert driving task''s name:';
dlg_title = 'Settings: Driving task name';
answer = inputdlg(prompt,dlg_title);
if ~isempty(answer)
Settings.drivingTaskName = answer{1};... |
github | ruvigroup/DIV_OpenDSDrivingTaskGenerator-master | isInSequenceNode.m | .m | DIV_OpenDSDrivingTaskGenerator-master/isInSequenceNode.m | 1,833 | utf_8 | ce59c848ff923ef493f58a8007bdad79 | function [isSequenceNode, sequenceOrder] = isInSequenceNode(s, fields)
[schemaFields, parent] = getRealSchemaPathFieldsFromActualPathFields(s, fields);
% for i=1:length(fields)
% isSequenceNode = recursiveGetIsSequenceNode(s, 0, fields{i}, schemaFields{i});
% end
sequenceOrder = {''};
if length(schemaFields... |
github | yabinzhangJohn/IRQA_Measure-master | edgeGroup.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/edgeGroup.m | 1,333 | utf_8 | ce8f6e7bd33d92befe0d9d7b7362e77f | function [bbs, v, v_id, E, O] = edgeGroup( I, model, varargin )
% get default parameters (unimportant parameters are undocumented)
dfs={'name','', 'alpha',.65, 'beta',.75, 'eta',1, 'minScore',.01, ...
'maxBoxes',1e4, 'edgeMinMag',.1, 'edgeMergeThr',.5,'clusterMinMag',.5,...
'maxAspectRatio',3, 'minBoxArea',1000... |
github | yabinzhangJohn/IRQA_Measure-master | imagesAlign.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/videos/imagesAlign.m | 8,167 | utf_8 | d125eb5beb502d940be5bd145521f34b | function [H,Ip] = imagesAlign( I, Iref, varargin )
% Fast and robust estimation of homography relating two images.
%
% The algorithm for image alignment is a simple but effective variant of
% the inverse compositional algorithm. For a thorough overview, see:
% "Lucas-kanade 20 years on A unifying framework,"
% S. B... |
github | yabinzhangJohn/IRQA_Measure-master | opticalFlow.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/videos/opticalFlow.m | 7,361 | utf_8 | b97e8c1f623eca07c6f1a0fff26d171e | function [Vx,Vy,reliab] = opticalFlow( I1, I2, varargin )
% Coarse-to-fine optical flow using Lucas&Kanade or Horn&Schunck.
%
% Implemented 'type' of optical flow estimation:
% LK: http://en.wikipedia.org/wiki/Lucas-Kanade_method
% HS: http://en.wikipedia.org/wiki/Horn-Schunck_method
% SD: Simple block-based sum of ... |
github | yabinzhangJohn/IRQA_Measure-master | seqWriterPlugin.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/videos/seqWriterPlugin.m | 8,280 | utf_8 | 597792f79fff08b8bb709313267c3860 | function varargout = seqWriterPlugin( cmd, h, varargin )
% Plugin for seqIo and videoIO to allow writing of seq files.
%
% Do not call directly, use as plugin for seqIo or videoIO instead.
% The following is a list of commands available (swp=seqWriterPlugin):
% h=swp('open',h,fName,info) % Open a seq file for writing ... |
github | yabinzhangJohn/IRQA_Measure-master | kernelTracker.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/videos/kernelTracker.m | 9,315 | utf_8 | 4a7d0235f1e518ab5f1c9f1b5450b3f0 | function [allRct, allSim, allIc] = kernelTracker( I, prm )
% Kernel Tracker from Comaniciu, Ramesh and Meer PAMI 2003.
%
% Implements the algorithm described in "Kernel-Based Object Tracking" by
% Dorin Comaniciu, Visvanathan Ramesh and Peter Meer, PAMI 25, 564-577,
% 2003. This is a fast tracking algorithm that utili... |
github | yabinzhangJohn/IRQA_Measure-master | seqIo.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/videos/seqIo.m | 17,019 | utf_8 | 9c631b324bb527372ec3eed3416c5dcc | function out = seqIo( fName, action, varargin )
% Utilities for reading and writing seq files.
%
% A seq file is a series of concatentated image frames with a fixed size
% header. It is essentially the same as merging a directory of images into
% a single file. seq files are convenient for storing videos because: (1)
%... |
github | yabinzhangJohn/IRQA_Measure-master | seqReaderPlugin.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/videos/seqReaderPlugin.m | 9,617 | utf_8 | ad8f912634cafe13df6fc7d67aeff05a | function varargout = seqReaderPlugin( cmd, h, varargin )
% Plugin for seqIo and videoIO to allow reading of seq files.
%
% Do not call directly, use as plugin for seqIo or videoIO instead.
% The following is a list of commands available (srp=seqReaderPlugin):
% h = srp('open',h,fName) % Open a seq file for reading ... |
github | yabinzhangJohn/IRQA_Measure-master | pcaApply.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/pcaApply.m | 3,320 | utf_8 | a06fc0e54d85930cbc0536c874ac63b7 | function varargout = pcaApply( X, U, mu, k )
% Companion function to pca.
%
% Use pca.m to retrieve the principal components U and the mean mu from a
% set of vectors x, then use pcaApply to get the first k coefficients of
% x in the space spanned by the columns of U. See pca for general usage.
%
% If x is large, pcaAp... |
github | yabinzhangJohn/IRQA_Measure-master | forestTrain.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/forestTrain.m | 6,138 | utf_8 | de534e2a010f452a7b13167dbf9df239 | function forest = forestTrain( data, hs, varargin )
% Train random forest classifier.
%
% Dimensions:
% M - number trees
% F - number features
% N - number input vectors
% H - number classes
%
% USAGE
% forest = forestTrain( data, hs, [varargin] )
%
% INPUTS
% data - [NxF] N length F feature vectors
% hs ... |
github | yabinzhangJohn/IRQA_Measure-master | fernsRegTrain.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/fernsRegTrain.m | 5,914 | utf_8 | b9ed2d87a22cb9cbb1e2632495ddaf1d | function [ferns,ysPr] = fernsRegTrain( data, ys, varargin )
% Train boosted fern regressor.
%
% Boosted regression using random ferns as the weak regressor. See "Greedy
% function approximation: A gradient boosting machine", Friedman, Annals of
% Statistics 2001, for more details on boosted regression.
%
% A few notes ... |
github | yabinzhangJohn/IRQA_Measure-master | rbfDemo.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/rbfDemo.m | 2,929 | utf_8 | 14cc64fb77bcac3edec51cf6b84ab681 | function rbfDemo( dataType, noiseSig, scale, k, cluster, show )
% Demonstration of rbf networks for regression.
%
% See rbfComputeBasis for discussion of rbfs.
%
% USAGE
% rbfDemo( dataType, noiseSig, scale, k, cluster, show )
%
% INPUTS
% dataType - 0: 1D sinusoid
% 1: 2D sinusoid
% 2: ... |
github | yabinzhangJohn/IRQA_Measure-master | pdist2.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/pdist2.m | 5,162 | utf_8 | 768ff9e8818251f756c8325368ee7d90 | function D = pdist2( X, Y, metric )
% Calculates the distance between sets of vectors.
%
% Let X be an m-by-p matrix representing m points in p-dimensional space
% and Y be an n-by-p matrix representing another set of points in the same
% space. This function computes the m-by-n distance matrix D where D(i,j)
% is the ... |
github | yabinzhangJohn/IRQA_Measure-master | pca.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/pca.m | 3,244 | utf_8 | 848f2eb05c18a6e448e9d22af27b9422 | function [U,mu,vars] = pca( X )
% Principal components analysis (alternative to princomp).
%
% A simple linear dimensionality reduction technique. Use to create an
% orthonormal basis for the points in R^d such that the coordinates of a
% vector x in this basis are of decreasing importance. Instead of using all
% d bas... |
github | yabinzhangJohn/IRQA_Measure-master | kmeans2.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/classify/kmeans2.m | 5,251 | utf_8 | f941053f03c3e9eda40389a4cc64ee00 | function [ IDX, C, d ] = kmeans2( X, k, varargin )
% Fast version of kmeans clustering.
%
% Cluster the N x p matrix X into k clusters using the kmeans algorithm. It
% returns the cluster memberships for each data point in the N x 1 vector
% IDX and the K x p matrix of cluster means in C.
%
% This function is in some w... |
github | yabinzhangJohn/IRQA_Measure-master | acfModify.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/detector/acfModify.m | 4,202 | utf_8 | 7a49406d51e7a9431b8fd472be0476e8 | function detector = acfModify( detector, varargin )
% Modify aggregate channel features object detector.
%
% Takes an object detector trained by acfTrain() and modifies it. Only
% certain modifications are allowed to the detector and the detector should
% never be modified directly (this may cause the detector to be in... |
github | yabinzhangJohn/IRQA_Measure-master | acfDetect.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/detector/acfDetect.m | 3,659 | utf_8 | cf1384311b16371be6fa4715140e5c81 | function bbs = acfDetect( I, detector, fileName )
% Run aggregate channel features object detector on given image(s).
%
% The input 'I' can either be a single image (or filename) or a cell array
% of images (or filenames). In the first case, the return is a set of bbs
% where each row has the format [x y w h score] and... |
github | yabinzhangJohn/IRQA_Measure-master | bbGt.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/detector/bbGt.m | 34,046 | utf_8 | 69e66c9a0cc143fb9a794fbc9233246e | function varargout = bbGt( action, varargin )
% Bounding box (bb) annotations struct, evaluation and sampling routines.
%
% bbGt gives access to two types of routines:
% (1) Data structure for storing bb image annotations.
% (2) Routines for evaluating the Pascal criteria for object detection.
%
% The bb annotation sto... |
github | yabinzhangJohn/IRQA_Measure-master | bbApply.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/detector/bbApply.m | 21,195 | utf_8 | cc9744e55c6b8442486ba7f71e3f84ce | function varargout = bbApply( action, varargin )
% Functions for manipulating bounding boxes (bb).
%
% A bounding box (bb) is also known as a position vector or a rectangle
% object. It is a four element vector with the fields: [x y w h]. A set of
% n bbs can be stores as an [nx4] array, most funcitons below can handle... |
github | yabinzhangJohn/IRQA_Measure-master | imwrite2.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/images/imwrite2.m | 5,086 | utf_8 | c98d66c2cddd9ec90beb9b1bbde31fe0 | function I = imwrite2( I, mulFlag, imagei, path, ...
name, ext, nDigits, nSplits, spliti, varargin )
% Similar to imwrite, except follows a strict naming convention.
%
% Wrapper for imwrite that writes file to the filename:
% fName = [path name int2str2(i,nDigits) '.' ext];
% Using imwrite:
% imwrite( I, fName, wri... |
github | yabinzhangJohn/IRQA_Measure-master | convnFast.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/images/convnFast.m | 9,102 | utf_8 | 03d05e74bb7ae2ecb0afd0ac115fda39 | function C = convnFast( A, B, shape )
% Fast convolution, replacement for both conv2 and convn.
%
% See conv2 or convn for more information on convolution in general.
%
% This works as a replacement for both conv2 and convn. Basically,
% performs convolution in either the frequency or spatial domain, depending
% on wh... |
github | yabinzhangJohn/IRQA_Measure-master | imMlGauss.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/images/imMlGauss.m | 5,674 | utf_8 | 56ead1b25fbe356f7912993d46468d02 | function varargout = imMlGauss( G, symmFlag, show )
% Calculates max likelihood params of Gaussian that gave rise to image G.
%
% Suppose G contains an image of a gaussian distribution. One way to
% recover the parameters of the gaussian is to threshold the image, and
% then estimate the mean/covariance based on the c... |
github | yabinzhangJohn/IRQA_Measure-master | montage2.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/images/montage2.m | 7,484 | utf_8 | 828f57d7b1f67d36eeb6056f06568ebf | function varargout = montage2( IS, prm )
% Used to display collections of images and videos.
%
% Improved version of montage, with more control over display.
% NOTE: Can convert between MxNxT and MxNx3xT image stack via:
% I = repmat( I, [1,1,1,3] ); I = permute(I, [1,2,4,3] );
%
% USAGE
% varargout = montage2( IS, ... |
github | yabinzhangJohn/IRQA_Measure-master | jitterImage.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/images/jitterImage.m | 5,252 | utf_8 | 3310f8412af00fd504c6f94b8c48992c | function IJ = jitterImage( I, varargin )
% Creates multiple, slightly jittered versions of an image.
%
% Takes an image I, and generates a number of images that are copies of the
% original image with slight translation, rotation and scaling applied. If
% the input image is actually an MxNxK stack of images then applie... |
github | yabinzhangJohn/IRQA_Measure-master | movieToImages.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/images/movieToImages.m | 889 | utf_8 | 28c71798642af276951ee27e2d332540 | function I = movieToImages( M )
% Creates a stack of images from a matlab movie M.
%
% Repeatedly calls frame2im. Useful for playback with playMovie.
%
% USAGE
% I = movieToImages( M )
%
% INPUTS
% M - a matlab movie
%
% OUTPUTS
% I - MxNxT array (of images)
%
% EXAMPLE
% load( 'images.mat' ); [X,map]=gray2ind... |
github | yabinzhangJohn/IRQA_Measure-master | toolboxUpdateHeader.m | .m | IRQA_Measure-master/MLF_code/EdgeGroup/toolbox/external/toolboxUpdateHeader.m | 2,255 | utf_8 | 7a5b75e586be48da97c84d20b59887ff | function toolboxUpdateHeader
% Update the headers of all the files.
%
% USAGE
% toolboxUpdateHeader
%
% INPUTS
%
% OUTPUTS
%
% EXAMPLE
%
% See also
%
% Piotr's Computer Vision Matlab Toolbox Version 3.40
% Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
% Licensed under the Simplified BSD License [see extern... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.