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 | libDirectional/libDirectional-master | stochasticSampling.m | .m | libDirectional-master/examples/stochasticSampling.m | 2,375 | utf_8 | b95cc1ebeba799e1541c14fff85a6289 | % This example evaluates stochastic sampling of circular densities.
%
% Three different sampling methods are compared, a native sample for the
% respective density, a generic Metropolis-Hastings sampler, and a sampler
% based on inverting the cumulative distribution function.
function stochasticSampling
%di... |
github | libDirectional/libDirectional-master | quaternionMultiplication.m | .m | libDirectional-master/lib/util/quaternionMultiplication.m | 725 | utf_8 | 5f8f9db745a1a49bf998e78a0db4f783 | % Calculates product of quaternions q and w
% Parameters:
% q (4 x 1 column vector)
% first quaternion
% w (4 x 1 column vector)
% second quaternion
% Returns:
% r (4 x 1 column vector)
% product q*w
function r = quaternionMultiplication(q, w)
assert(all(size(q) == [4 1]));
... |
github | libDirectional/libDirectional-master | besselratioInverse.m | .m | libDirectional-master/lib/util/besselratioInverse.m | 3,540 | utf_8 | 3bfa2d63da38bd6f3e6a84460c69a82c | function kappa = besselratioInverse(v, x, type)
% The inverse of the Ratio I_{v+1}(x)/I_v(x) is computed, where
% I_v(x) is the Bessel-I function of order v evaluated at x.
%
% Parameters:
% v (scalar)
% order
% x (scalar)
% where to evaluate
% type (string... |
github | libDirectional/libDirectional-master | generateSymbolic.m | .m | libDirectional-master/lib/util/generateSymbolic.m | 1,215 | utf_8 | af1b6b5f9689ff00d9cbe748f7c983d5 | function generateSymbolic(D)
% Requires the symbolic toolbox, if you need to generate further files.
% Files are already generated for d = 2:6.
name = 'cBinghamNorm';
filename = mFilePath(D, name);
if exist(filename, 'file') == 0
[c, X] = cBinghamNormSymbolic(D);
mFileExport(c, ... |
github | libDirectional/libDirectional-master | sphMeanShift.m | .m | libDirectional-master/lib/util/sphMeanShift.m | 659 | utf_8 | 958ccbbe80ce6728e0237139b4c65685 | function x_mean = sphMeanShift(x, w)
% @author Kailai Li kailai.li@kit.edu
% @date 2018
x_mean = x(:, 1);
while 1
x(:, x_mean'*x < 0) = -x(:, x_mean'*x < 0);
x_t = sphLog(x_mean, x);
x_mean_t = sum(x_t.*w, 2);
if norm(x_mean_t) < 1E-6
break
end
x_mean = sphExp(x_mean, x_mean_t);
end
end
... |
github | libDirectional/libDirectional-master | cubesubdivision.m | .m | libDirectional-master/lib/util/cubesubdivision.m | 2,048 | utf_8 | 5fb465876f34031556a8763f0ea61709 | % Gerhard Kurz, Florian Pfaff, Uwe D. Hanebeck,
% Discretization of SO(3) Using Recursive Tesseract Subdivision
% Proceedings of the 2017 IEEE International Conference on Multisensor Fusion and Integration for Intelligent Systems (MFI 2017)
% Daegu, Korea, November 2017.
function result = cubesubdivision(n, norma... |
github | libDirectional/libDirectional-master | angularError.m | .m | libDirectional-master/lib/util/angularError.m | 317 | utf_8 | 2e98c005845e7d6a1d6fa3de25e778ea | %% Calculates the angular error between alpha and beta
function e = angularError(alpha, beta)
arguments
alpha double {mustBeNonempty}
beta double {mustBeNonempty}
end
alpha = mod(alpha,2*pi);
beta = mod(beta,2*pi);
diff = abs(alpha-beta);
e = min(diff,2*pi-diff);
end |
github | libDirectional/libDirectional-master | complexMultiplication.m | .m | libDirectional-master/lib/util/complexMultiplication.m | 457 | utf_8 | 8061eca5ea8d1f05e0742757e60cd78d | % Calculates product of complex numbers q and w
% Parameters:
% q (2 x 1 column vector)
% first complex number
% w (2 x 1 column vector)
% second complex number
% Returns:
% r (2 x 1 column vector)
% product q*w
function r = complexMultiplication(q, w)
assert(all(size(q) == [2,1]... |
github | libDirectional/libDirectional-master | tesseractsubdivision.m | .m | libDirectional-master/lib/util/tesseractsubdivision.m | 2,141 | utf_8 | 06207da5af3e03c28de06cff44f5f135 | % Gerhard Kurz, Florian Pfaff, Uwe D. Hanebeck,
% Discretization of SO(3) Using Recursive Tesseract Subdivision
% Proceedings of the 2017 IEEE International Conference on Multisensor Fusion and Integration for Intelligent Systems (MFI 2017)
% Daegu, Korea, November 2017.
function result = tesseractsubdivision(n, ... |
github | libDirectional/libDirectional-master | BinghamDistribution.m | .m | libDirectional-master/lib/distributions/Hypersphere/BinghamDistribution.m | 44,212 | utf_8 | c8bf69cc58a27838875cc22e978de144 | % The Bingham Distribution.
% This class represents a d-dimensional Bingham distribution.
%
% Notation:
% In this class, d represents the dimension of the distribution.
% Currently, there is no support for uniform Bingham distributions.
%
% see
% C. Bingham, "An antipodally symmetric distribution on the s... |
github | libDirectional/libDirectional-master | circVMcdf.m | .m | libDirectional-master/lib/external/circVMcdf.m | 2,511 | utf_8 | 02fe9e452bc8b1c42bd0b222292d3062 | function res = circVMcdf(T,VK)
%circVMcdf cumulative Von-Mises distribution VM(0,k)
% res = circVMcdf(T,VK)
% T - angles at which to compute CDF
% VK - kappa value for distribution
%
% Directly converted from Fortran code published in
%
% Algorithm 518: Incomplete Bessel Function I0.
% ... |
github | libDirectional/libDirectional-master | wigner3jm.m | .m | libDirectional-master/lib/external/slepian_alpha/wigner3jm.m | 13,476 | utf_8 | a051e6ecc6ac2a6461d55afb9277a876 | function [w3j,j]=wigner3jm(L,l2,l3,m1,m2,m3)
% [w3j,j]=WIGNER3JM(L,l2,l3,m1,m2,m3)
%
% Calculates Wigner 3j symbols by recursion, for all values of j<=L
% allowed in the expression (L l2 l3)
% (m1 m2 m3)
% There is no truncation at any bandwidth - they are all returned
% Note the selection ru... |
github | libDirectional/libDirectional-master | xyz2plm.m | .m | libDirectional-master/lib/external/slepian_alpha/xyz2plm.m | 10,265 | utf_8 | c12b5c4b341a7d4cdc70443ff4bfd698 | function [lmcosi,dw]=xyz2plm(fthph,L,method,lat,lon,cnd)
% [lmcosi,dw]=XYZ2PLM(fthph,L,method,lat,lon,cnd)
%
% Forward real spherical harmonic transform in the 4pi normalized basis.
%
% Converts a spatially gridded field into spherical harmonics.
% For complete and regular spatial samplings [0 360 -90 90].
% If regular... |
github | libDirectional/libDirectional-master | project_s3_partition.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_illustrations/project_s3_partition.m | 7,962 | utf_8 | 1a63325e3e5e2ea8d502ba34b4e06f3c | function [movie_frame] = project_s3_partition(N,varargin)
%PROJECT_S3_PARTITION Use projection to illustrate an EQ partition of S^3
%
%Syntax
% [movie_frame] = project_s3_partition(N,options);
%
%Description
% PROJECT_S3_PARTITION(N) uses projection to illustrate the partition of
% the unit sphere S^3 into N regions.
%... |
github | libDirectional/libDirectional-master | project_s3_partition_symm.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_illustrations/project_s3_partition_symm.m | 8,491 | utf_8 | 2a42994a8120fb1cf8dff550211ed31a | function [movie_frame] = project_s3_partition_symm(N,showOnlyHalf,varargin)
%PROJECT_S3_PARTITION Use projection to illustrate an EQ partition of S^3
%
%Syntax
% [movie_frame] = project_s3_partition(N,options);
%
%Description
% PROJECT_S3_PARTITION(N) uses projection to illustrate the partition of
% the unit sphere S^3... |
github | libDirectional/libDirectional-master | show_s2_partition.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_illustrations/show_s2_partition.m | 4,545 | utf_8 | 82695a64c69f1c5c3889d51e8bbc426d | function [movie_frame] = show_s2_partition(N,varargin)
%SHOW_S2_PARTITION 3D illustration of an EQ partition of S^2
%
%Syntax
% [movie_frame] = show_s2_partition(N,options);
%
%Description
% SHOW_S2_PARTITION(N) uses a 3d plot to illustrate the partition of
% the unit sphere S^2 into N regions.
%
% MOVIE_FRAME = SHOW_S... |
github | libDirectional/libDirectional-master | illustration_options.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_illustrations/illustration_options.m | 6,138 | utf_8 | 1834482cf5939c4cf12940d3c0151dbb | function gopt = illustration_options(gdefault, varargin)
%ILLUSTRATION_OPTIONS Options for illustrations of EQ partitions
%
%Syntax
% gopt = illustration_options(gdefault,options);
%
%Description
% GOPT = ILLUSTRATION_OPTIONS(GDEFAULT,options) collects illustration options,
% specified as name, value pairs, and places ... |
github | libDirectional/libDirectional-master | project_s2_partition.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_illustrations/project_s2_partition.m | 5,591 | utf_8 | da4b16d4d4515eaa89b78c51d43e6b44 | function [movie_frame] = project_s2_partition(N,varargin)
%PROJECT_S2_PARTITION Use projection to illustrate an EQ partition of S^2
%
%Syntax
% [movie_frame] = project_s2_partition(N,options);
%
%Description
% PROJECT_S2_PARTITION(N) uses projection to illustrate the partition of
% the unit sphere S^2 into N regions.
%... |
github | libDirectional/libDirectional-master | show_s2_partition_symm.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_illustrations/show_s2_partition_symm.m | 5,246 | utf_8 | 127934bf827e86dae624f46407897ce4 | function [movie_frame] = show_s2_partition_symm(N,showOnlyHalf,symmetryType,varargin)
%SHOW_S2_PARTITION 3D illustration of an EQ partition of S^2
%
%Syntax
% [movie_frame] = show_s2_partition(N,options);
%
%Description
% SHOW_S2_PARTITION(N) uses a 3d plot to illustrate the partition of
% the unit sphere S^2 into N re... |
github | libDirectional/libDirectional-master | calc_energy_coeff.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_point_set_props/calc_energy_coeff.m | 4,435 | utf_8 | 2d3fad0cecbe7e98770c8fb861b465f9 | function coeff = calc_energy_coeff(dim,N,s,energy)
%CALC_ENERGY_COEFF Coefficient of second term in expansion of energy
%
%Syntax
% coeff = calc_energy_coeff(d,N,s,energy);
%
%Description
% COEFF = CALC_ENERGY_COEFF(dim,N,s,ENERGY) sets COEFF to be the coefficient of
% the second term of an expansion of ENERGY with the... |
github | libDirectional/libDirectional-master | point_set_energy_dist.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_point_set_props/point_set_energy_dist.m | 2,278 | utf_8 | 8d415c577d853255ac6e39d54d3c7e04 | function [energy,min_dist] = point_set_energy_dist(points,s)
%POINT_SET_ENERGY_DIST Energy and minimum distance of a point set
%
%Syntax
% [energy,min_dist] = point_set_energy_dist(points,s);
%
%Description
% [ENERGY,MIN_DIST] = POINT_SET_ENERGY_DIST(POINTS,s) sets ENERGY to be the
% energy of the r^(-s) potential on t... |
github | libDirectional/libDirectional-master | partition_options.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_partitions/partition_options.m | 3,298 | utf_8 | 66003a1c85613d062acb28376dd1550c | function popt = partition_options(pdefault, varargin)
%PARTITION_OPTIONS Options for EQ partition
%
%Syntax
% popt = partition_options(pdefault,options);
%
%Description
% POPT = PARTITION_OPTIONS(PDEFAULT,options) collects partition options,
% specified as name, value pairs, and places these into the structure POPT.
% ... |
github | libDirectional/libDirectional-master | illustrate_eq_algorithm.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_partitions/illustrate_eq_algorithm.m | 10,506 | utf_8 | d513f0f352186d48897941b08abbdeed | function illustrate_eq_algorithm(dim,N,varargin)
%ILLUSTRATE_EQ_ALGORITHM Illustrate the EQ partition algorithm
%
%Syntax
% illustrate_eq_algorithm(dim,N,options);
%
%Description
% ILLUSTRATE_EQ_ALGORITHM(dim,N) illustrates the recursive zonal equal area
% sphere partitioning algorithm, which partitions S^dim (the unit... |
github | libDirectional/libDirectional-master | expand_region_for_diam.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_region_props/private/expand_region_for_diam.m | 1,159 | utf_8 | 7e9858ac0283f7c2396c3d6727ead0b7 | function expanded_region = expand_region_for_diam(region)
%EXPAND_REGION_FOR_DIAM The set of 2^d vertices of a region
%
% Expand a region from the 2 vertex definition to the set of 2^dim vertices
% of the pseudo-region of a region, so that the Euclidean diameter of a region
% is approximated by the diameter of this se... |
github | libDirectional/libDirectional-master | max_vertex_diam_of_regions.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_region_props/private/max_vertex_diam_of_regions.m | 1,945 | utf_8 | 06d6d3f18a8b458a382632d6c252e136 | function vertex_diam = max_vertex_diam_of_regions(regions)
%MAX_VERTEX_DIAM_OF_REGIONS The max vertex diameter in a cell array of regions
%
% vertex_diam = max_vertex_diam_of_regions(regions);
% Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
% $Revision 1.10 $ $Date 2005-06-01 $
% Function ch... |
github | libDirectional/libDirectional-master | max_diam_bound_of_regions.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_region_props/private/max_diam_bound_of_regions.m | 1,775 | utf_8 | 40cdd90073575c36f53cfb9196f84187 | function diam_bound = max_diam_bound_of_regions(regions)
%MAX_DIAM_BOUND_OF_REGIONS The maximum diameter bound in an array of regions
%
% diam_bound = max_diam_bound_of_regions(regions);
% Copyright 2004-2005 Paul Leopardi for the University of New South Wales.
% $Revision 1.10 $ $Date 2005-06-01 $
% Function s2e chan... |
github | libDirectional/libDirectional-master | eq_area_error.m | .m | libDirectional-master/lib/external/eq_sphere_partitions/eq_test/eq_area_error.m | 3,108 | utf_8 | 167106e355712248825d71c9393c02b0 | function [total_error, max_error] = eq_area_error(dim,N)
%EQ_AREA_ERROR Total area error and max area error per region of an EQ partition
%
%Syntax
% [total_error, max_error] = eq_area_error(dim,N)
%
%Description
% [TOTAL_ERROR, MAX_ERROR] = EQ_AREA_ERROR(dim,N) does the following:
% 1) uses the recursive zonal equal a... |
github | libDirectional/libDirectional-master | DiscreteHypersphericalFilter.m | .m | libDirectional-master/lib/filters/DiscreteHypersphericalFilter.m | 21,276 | utf_8 | 8956277005138d99e8f538738913764f | classdef DiscreteHypersphericalFilter < AbstractHypersphericalFilter
% A discrete filter on the hypersphere
properties
d
w
DT
end
methods
function this = DiscreteHypersphericalFilter(nParticles, dim, method)
% Constructor
%
... |
github | jmportilla/stanford_dl_ex-master | WolfeLineSearch.m | .m | stanford_dl_ex-master/common/minFunc_2012/minFunc/WolfeLineSearch.m | 10,590 | utf_8 | f962bc5ae0a1e9f80202a9aaab106dab | function [t,f_new,g_new,funEvals,H] = WolfeLineSearch(...
x,t,d,f,g,gtd,c1,c2,LS_interp,LS_multi,maxLS,progTol,debug,doPlot,saveHessianComp,funObj,varargin)
%
% Bracketing Line Search to Satisfy Wolfe Conditions
%
% Inputs:
% x: starting location
% t: initial step size
% d: descent direction
% f: function v... |
github | jmportilla/stanford_dl_ex-master | minFunc_processInputOptions.m | .m | stanford_dl_ex-master/common/minFunc_2012/minFunc/minFunc_processInputOptions.m | 4,103 | utf_8 | 8822581c3541eabe5ce7c7927a57c9ab |
function [verbose,verboseI,debug,doPlot,maxFunEvals,maxIter,optTol,progTol,method,...
corrections,c1,c2,LS_init,cgSolve,qnUpdate,cgUpdate,initialHessType,...
HessianModify,Fref,useComplex,numDiff,LS_saveHessianComp,...
Damped,HvFunc,bbType,cycle,...
HessianIter,outputFcn,useMex,useNegCurv,precFunc... |
github | jmportilla/stanford_dl_ex-master | removeDC.m | .m | stanford_dl_ex-master/rica/removeDC.m | 420 | utf_8 | 98f8564a2e7aaf2a188d142a08be2c14 | % Removes DC component from image patches
% Data given as a matrix where each patch is one column vectors
% That is, the patches are vectorized.
function [Y,meanX]=removeDC(X, dim);
% Subtract local mean gray-scale value from each patch in X to give output Y
if nargin == 1
dim = 1;
end
meanX = mean(X,dim);
if d... |
github | jmportilla/stanford_dl_ex-master | softICACost.m | .m | stanford_dl_ex-master/rica/softICACost.m | 388 | utf_8 | d9004e62d6d16c20a74f4b05339c197c | %% Your job is to implement the RICA cost and gradient
function [cost,grad] = softICACost(theta, x, params)
% unpack weight matrix
W = reshape(theta, params.numFeatures, params.n);
% project weights to norm ball (prevents degenerate bases)
Wold = W;
W = l2rowscaled(W, 1);
%%% YOUR CODE HERE %%%
% unproject gradient... |
github | jmportilla/stanford_dl_ex-master | bsxfunwrap.m | .m | stanford_dl_ex-master/rica/bsxfunwrap.m | 1,030 | utf_8 | 9db0f61375c03b342b2005b39d596726 |
function c = bsxfunwrap(func, a, b)
global usegpu;
if usegpu
if size(a,1) > 1 && size(b,1) == 1
assert(size(a,2) == size(b,2), 'bsxfunwrap singleton dimensions dont agree');
c = func(a, repmat(b, size(a,1), 1));
elseif size(a,2) > 1 && size(b,2) == 1
assert(size(a,1) == size(b,1), 'bs... |
github | ABCDlab/surfstat-helper-master | saveTable.m | .m | surfstat-helper-master/+abcd/saveTable.m | 3,659 | utf_8 | af8e02e2a64a016617202555de96a114 | function saveTable( table, file, varargin )
% A flexible table writer to save tabular data to a file. Accepts data in
% several formats, and can handle mixed text and numeric data.
%
% Usage: saveTable( table, file [, optionName, optionvalue ...]);
%
% table The input table data. Can be:
% - A structur... |
github | ABCDlab/surfstat-helper-master | attributeStore.m | .m | surfstat-helper-master/+abcd/@attributeStore/attributeStore.m | 5,414 | utf_8 | c03158b2f6dfbc0d89eef9815363aa6e | classdef attributeStore < handle
% AttributeStore is a class to store name-value attributes.
% The contents of the store can be rendered to a string in a flexible
% format using the asString method.
properties
Attribs = struct();
end
properties (Hidden)
StringOptions = [];
... |
github | sensestage/swonder-master | waves.m | .m | swonder-master/twonder_old/waves.m | 2,924 | utf_8 | 46497ec3089228a79e83175a1313032d |
global rresox=200
global rresoy=200
function mat=calc_circ( center_x, center_y, resox, resoy )
mab=ones( resox, resoy );
for x=1:resox
for y=1:resoy
mab( x, y ) = sqrt( (x - center_x)^2 + (y - center_y)^2 );
endfor
endfor
mat=mab;
endfunction
function bool = fexists( name )
f = fopen( name, "rb" );
if(... |
github | mstrader/mlib_devel-master | bus_single_port_ram_init.m | .m | mlib_devel-master/casper_library/bus_single_port_ram_init.m | 19,918 | utf_8 | 09e8b58ab26d2a4b7d02d66ebfbf8fc3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | rcmult_init.m | .m | mlib_devel-master/casper_library/rcmult_init.m | 4,200 | utf_8 | 48239288509e086f6d81eb521a80beec | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | cosin_init.m | .m | mlib_devel-master/casper_library/cosin_init.m | 29,664 | utf_8 | 78c309b6249d7f1414582677b0b52625 | % Generate cos/sin
%
% cosin_init(blk, varargin)
%
% blk = The block to be configured.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ... |
github | mstrader/mlib_devel-master | fir_dbl_tap_async_init.m | .m | mlib_devel-master/casper_library/fir_dbl_tap_async_init.m | 9,146 | utf_8 | 6ca1f7ee8663db5bce186dca292e24ce | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | polynomial_init.m | .m | mlib_devel-master/casper_library/polynomial_init.m | 9,746 | utf_8 | 1e1f6739e96ec953e2b202317ce5f63a | % Polynomial.
%
% polynomial_init(blk, varargin)
%
% blk = The block to be configured.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% n_polys = number of polynomials to implement
% degree = polynomial degree
% mult_latency = multiplier latency
% bits_out = number of bi... |
github | mstrader/mlib_devel-master | pfb_add_tree_init.m | .m | mlib_devel-master/casper_library/pfb_add_tree_init.m | 7,371 | utf_8 | 1e2bd3a590b6dc5ab6214b61484f1e1d | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | fft_biplex_init.m | .m | mlib_devel-master/casper_library/fft_biplex_init.m | 12,957 | utf_8 | ce01d00a2963f3ab6f7167d1f5912412 | % Initialize and configure an fft_biplex block.
%
% fft_biplex_init(blk, varargin)
%
% blk = the block to configure
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames:
% n_inputs = Number of simultaneous inputs
% FFTSize = Size of the FFT (2^FFTSize points).
% input_bit_width = Bi... |
github | mstrader/mlib_devel-master | update_casper_library_links.m | .m | mlib_devel-master/casper_library/update_casper_library_links.m | 5,038 | utf_8 | 27eb7a850735a99442bca74c2fc283e2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu/ %
... |
github | mstrader/mlib_devel-master | compute_order.m | .m | mlib_devel-master/casper_library/compute_order.m | 380 | utf_8 | 6fa81a3a2aa0a58dde94ccd697afb31e | % Computes the cyclic order of a permutation
function rv = compute_order(map)
order = 1;
for i=1:length(map),
j = -1;
cur_order = 1;
while j+1 ~= i,
if j < 0,
j = map(i);
else,
j = map(j+1);
cur_order = cur_order + 1;
end
end
... |
github | mstrader/mlib_devel-master | save_state.m | .m | mlib_devel-master/casper_library/save_state.m | 2,502 | utf_8 | a9966a2e72bf3417935963e7a092139d | % Saves blk's new state and parameters.
%
% save_state(blk,varargin)
%
% blk = The block to check
% varargin = The things to compare.
%
% The block's UserData 'state' parameter is updated with the contents of the hash of
% varargin, and the parameters saved in the 'parameters' struct.
% the block's UserDataPersistent p... |
github | mstrader/mlib_devel-master | twiddle_general_init.m | .m | mlib_devel-master/casper_library/twiddle_general_init.m | 11,555 | utf_8 | 28b657eb3a8f35ee083eb58d841f0efe | % twiddle_general_init(blk, varargin)
%
% blk = The block to configure
% varargin = {'varname', 'value, ...} pairs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Karoo Array Telesope ... |
github | mstrader/mlib_devel-master | same_state.m | .m | mlib_devel-master/casper_library/same_state.m | 4,645 | utf_8 | 418e3d4fb1b5e950970b0b1c7a7c592b | % Determines if a block's state matches the arguments.
%
% blk = The block to check
% varargin = A cell array of things to compare.
%
% The compares the block's UserData parameter with the contents of
% varargin. If they match, this function returns true. If they do not
% match, this function returns false.
%%%%%%%%... |
github | mstrader/mlib_devel-master | coeff_gen_init.m | .m | mlib_devel-master/casper_library/coeff_gen_init.m | 28,562 | utf_8 | 85557fc93abc4baed77457647b63dcb1 | % coeff_gen_init(blk, varargin)
%
% blk = The block to configure
% varargin = {'varname', 'value, ...} pairs
%
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa ... |
github | mstrader/mlib_devel-master | bitsnap_callback.m | .m | mlib_devel-master/casper_library/bitsnap_callback.m | 3,198 | utf_8 | 680d04a1deb9d1c412fee10711f367bb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Meerkat radio telescope project %
% www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | fir_col_init.m | .m | mlib_devel-master/casper_library/fir_col_init.m | 7,197 | utf_8 | fb82de9a6c3f4e202a20478cef68e0fc | % fir_col_init(blk, varargin)
%
% blk = The block to initialize.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% n_inputs = The number of parallel input samples.
% coeff = The FIR coefficients, top-to-bottom.
% add_latency = The latency of adders.
% mult_latency = The late... |
github | mstrader/mlib_devel-master | simple_bram_vacc_init.m | .m | mlib_devel-master/casper_library/simple_bram_vacc_init.m | 2,999 | utf_8 | 8f8e87fb49dd1595118ad9a02258af3e | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu %
... |
github | mstrader/mlib_devel-master | cross_multiplier_init.m | .m | mlib_devel-master/casper_library/cross_multiplier_init.m | 11,071 | utf_8 | 0bdb1cd084e68bc458335523ffe226de | % cross_multiplier_init(blk, varargin)
%
% Used in refactor block
%
% blk = The block to configure
% varargin = {'varname', 'value, ...} pairs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Ka... |
github | mstrader/mlib_devel-master | bus_expand_init.m | .m | mlib_devel-master/casper_library/bus_expand_init.m | 10,705 | utf_8 | bb8856be5d72c2cfa78289755e0824bb | % Create a 'bus' of similar signals
%
% bus_expand_init(blk, varargin)
%
% blk = The block to be configured.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% outputNum = Number of outputs to split bus into
% outputWidth = Total bit width of each output
% outputBinaryPt = Binary poin... |
github | mstrader/mlib_devel-master | bus_dual_port_ram_init.m | .m | mlib_devel-master/casper_library/bus_dual_port_ram_init.m | 29,653 | utf_8 | c6478aedce086e963916fa3618e5d4eb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | mirror_spectrum_init.m | .m | mlib_devel-master/casper_library/mirror_spectrum_init.m | 8,383 | utf_8 | e4141a1bad1ef5d40637641fadd247c5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKASA %
% www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | pfb_fir_coeff_gen_init.m | .m | mlib_devel-master/casper_library/pfb_fir_coeff_gen_init.m | 15,990 | utf_8 | 1de8ce4de68d6d055f4914665ca8e8a1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | delay_wideband_prog_init.m | .m | mlib_devel-master/casper_library/delay_wideband_prog_init.m | 10,869 | utf_8 | a754c63e13487297b707da15284afa1f | % Initialize and configure the delay wideband programmable block .
% By Jason + Mekhala, mods by Andrew
%
% delay_wideband_prog_init(blk, varargin)
%
% blk = The block to configure.
% varargin = {'varname', 'value', ...} pairs
%
% Declare any default values for arguments you might like.
function delay_wideband_prog_i... |
github | mstrader/mlib_devel-master | fir_dbl_tap_init.m | .m | mlib_devel-master/casper_library/fir_dbl_tap_init.m | 7,747 | utf_8 | b5c58515b786a94c758a38b09fd6d81f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | get_param_state.m | .m | mlib_devel-master/casper_library/get_param_state.m | 1,994 | utf_8 | 77eacf7f9e7eed2d656b20cdfe419cf9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu %
... |
github | mstrader/mlib_devel-master | get_var.m | .m | mlib_devel-master/casper_library/get_var.m | 2,305 | utf_8 | 435a2de952a1862c45f78c3bd3f88368 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | tostring.m | .m | mlib_devel-master/casper_library/tostring.m | 1,006 | utf_8 | b3d643714b38a14e0d24db55ab592352 | %Designed to convert things into strings for populating mask text boxes.
%Works with 1D arrays (lists) and strings or single values.
% YMMV with multidimensional arrays or matrices.
function string = tostring( something, precision )
prec = 32;
if nargin > 1,
if precision > 50,
disp(['tostring: maximum... |
github | mstrader/mlib_devel-master | reorder_init.m | .m | mlib_devel-master/casper_library/reorder_init.m | 22,713 | utf_8 | 2eec3baa33bc583d333266b32d5c9e1f | % Initialize and configure the reorder block.
%
% reorder_init(blk, varargin)
%
% blk = The block to be initialize.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% map = The desired output order.
% map_latency = The latency of the map block.
% bram_latency = The latency o... |
github | mstrader/mlib_devel-master | bus_expand_callback.m | .m | mlib_devel-master/casper_library/bus_expand_callback.m | 2,941 | utf_8 | a9578b135a2cf3ba7b12b59590d8ad04 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Meerkat radio telescope project %
% www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | update_casper_blocks.m | .m | mlib_devel-master/casper_library/update_casper_blocks.m | 5,609 | utf_8 | c520d2a32e492de75f7aec5808065f24 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | reuse_block.m | .m | mlib_devel-master/casper_library/reuse_block.m | 6,803 | utf_8 | f620e6db62266a70cf21654582ac4a59 | % Instantiate a block named 'name' from library template 'refblk',
% if no such block already exists. Otherwise, just configure that
% block with any parameter, value pairs provided in varargin.
% If refblk is has an '_init' function, this may still need to be
% called after this function is called.
%
% reuse_b... |
github | mstrader/mlib_devel-master | bus_register_init.m | .m | mlib_devel-master/casper_library/bus_register_init.m | 8,416 | utf_8 | 56479e2951c05003310a5480efa71460 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | dsp48e_bram_vacc_init.m | .m | mlib_devel-master/casper_library/dsp48e_bram_vacc_init.m | 3,432 | utf_8 | b71af83720863c419ea3b9fa21ccfbd4 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu %
... |
github | mstrader/mlib_devel-master | bus_mux_init.m | .m | mlib_devel-master/casper_library/bus_mux_init.m | 8,977 | utf_8 | e6b13766a778f08c129db349ec3c5276 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | set_mask_params.m | .m | mlib_devel-master/casper_library/set_mask_params.m | 3,193 | utf_8 | a43b90f45d40808d05842252739bc372 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | bus_convert_init.m | .m | mlib_devel-master/casper_library/bus_convert_init.m | 12,096 | utf_8 | 6efe30a309718fd9745a244c78282c49 |
function bus_convert_init(blk, varargin)
clog('entering bus_convert_init', 'trace');
% Set default vararg values.
% reg_retiming is not an actual parameter of this block, but it is included
% in defaults so that same_state will return false for blocks drawn prior to
% adding reg_retiming='on' to some of ... |
github | mstrader/mlib_devel-master | bus_delay_init.m | .m | mlib_devel-master/casper_library/bus_delay_init.m | 7,548 | utf_8 | 504af36d730100c74211cf950122986b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | convert_of_init.m | .m | mlib_devel-master/casper_library/convert_of_init.m | 7,714 | utf_8 | 9521c93dea6662366ea24665b32c1297 | % Bit width conversion in 2's complement data with indication of
% over/underflow
%
% convert_of_init(blk, varargin)
%
% blk = The block to initialise
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
%
% bit_width_i = Total bit width of input data
% binary_point_i = Numbe... |
github | mstrader/mlib_devel-master | twiddle_general_4mult_init.m | .m | mlib_devel-master/casper_library/twiddle_general_4mult_init.m | 14,577 | utf_8 | a0dc57fd861b1c01fb32e2a389e2c90a | % twiddle_general_4mult_init(blk, varargin)
%
% blk = The block to configure
% varargin = {'varname', 'value, ...} pairs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Karoo Array Telesope ... |
github | mstrader/mlib_devel-master | set_param_state.m | .m | mlib_devel-master/casper_library/set_param_state.m | 2,025 | utf_8 | 4cabaa5ab4266c8cda5e954f884f6822 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu %
... |
github | mstrader/mlib_devel-master | sincos_init.m | .m | mlib_devel-master/casper_library/sincos_init.m | 5,943 | utf_8 | f46b84e172872452da8ca5c34a2a10e6 | % Generate sine/cos.
%
% sincos_init(blk, varargin)
%
% blk = The block to be configured.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ... |
github | mstrader/mlib_devel-master | last_tap_real_init.m | .m | mlib_devel-master/casper_library/last_tap_real_init.m | 2,685 | utf_8 | 8ea0bf0847220ce597822a7e4e587225 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | bit_reverse_init.m | .m | mlib_devel-master/casper_library/bit_reverse_init.m | 3,419 | utf_8 | 7a63f92cfb4aa1dfddd8dd479d06b938 | % Initialize and populate a bit_reverse block.
%
% bit_reverse_init(blk, varargin)
%
% blk = The block to initialize.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% n_bits = The number of input bits to reverse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | mstrader/mlib_devel-master | backpopulate_mask.m | .m | mlib_devel-master/casper_library/backpopulate_mask.m | 3,100 | utf_8 | 8a41f770a26ae171fd8c088d0458ff61 | % Rewrites mask parameters as strings if short enough, otherwise call to extract.
%
% backpopulate_mask( blk, varargin )
%
% blk - The block whose mask will be modified
% varargin - {'var', 'value', ...} pairs
%
% Cycles through the list of mask parameter variable names. Appends a new cell
% with the variable value (ex... |
github | mstrader/mlib_devel-master | fft_callback_dsp48_adders.m | .m | mlib_devel-master/casper_library/fft_callback_dsp48_adders.m | 2,151 | utf_8 | a28df53b3efb26e11cfa3e0158f78560 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu %
... |
github | mstrader/mlib_devel-master | bus_replicate_init.m | .m | mlib_devel-master/casper_library/bus_replicate_init.m | 6,992 | utf_8 | e36f7955f116f0ce1ce005d256e92bfb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | casper_library_downconverter_init.m | .m | mlib_devel-master/casper_library/casper_library_downconverter_init.m | 36,385 | utf_8 | e4cd6212025975a22f85b003fed1b78d | function casper_library_downconverter_init()
warning off Simulink:Engine:MdlFileShadowing;
close_system('casper_library_downconverter', 0);
mdl = new_system('casper_library_downconverter', 'Library');
blk = get(mdl,'Name');
warning on Simulink:Engine:MdlFileShadowing;
add_block('built-in/SubSystem', [blk,'/mixe... |
github | mstrader/mlib_devel-master | last_tap_init.m | .m | mlib_devel-master/casper_library/last_tap_init.m | 3,201 | utf_8 | b4a61bac8f0d784d5db5bf82b9eb1e81 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | barrel_switcher_init.m | .m | mlib_devel-master/casper_library/barrel_switcher_init.m | 7,183 | utf_8 | 1bc6d7d6ad595f2b3ef0271a4dd0a5e4 | % Initialize and configure the barrel switcher.
%
% barrel_switcher_init(blk, varargin)
%
% blk = The block to configure.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% n_inputs = Number of inputs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | mstrader/mlib_devel-master | rcs_init.m | .m | mlib_devel-master/casper_library/rcs_init.m | 12,031 | utf_8 | c057a49a7b8e6b434c3314e6d96c3705 | % Embed revision control info into gateware
%
% rcs_init(blk, varargin)
%
% blk = The block to be configured.
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames for this block are:
% app_src = Revision source for application (git, svn, timestamp)
% lib_src = Revision source for libraries (git, svn, timesta... |
github | mstrader/mlib_devel-master | delay_bram_prog_dp_init.m | .m | mlib_devel-master/casper_library/delay_bram_prog_dp_init.m | 4,950 | utf_8 | eeab252737022d3657e6b9ada95a8180 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | cmult_init.m | .m | mlib_devel-master/casper_library/cmult_init.m | 15,367 | utf_8 | ebc6efcdec67117f0f322f39cf8b1e56 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | propagate_vars.m | .m | mlib_devel-master/casper_library/propagate_vars.m | 2,403 | utf_8 | 554d3ff7095f1958d659d4526bdb56b6 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | twiddle_general_3mult_init.m | .m | mlib_devel-master/casper_library/twiddle_general_3mult_init.m | 15,210 | utf_8 | 1274f1b5c8cdef1a8d3ad7f931f58f27 | % twiddle_general_3mult_init(blk, varargin)
%
% blk = The block to configure
% varargin = {'varname', 'value, ...} pairs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Karoo Array Telesope ... |
github | mstrader/mlib_devel-master | first_tap_init.m | .m | mlib_devel-master/casper_library/first_tap_init.m | 3,182 | utf_8 | 50e9b43589ff76f954942548c2469f51 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | butterfly_direct_init.m | .m | mlib_devel-master/casper_library/butterfly_direct_init.m | 22,175 | utf_8 | 4874f5db36e43f539e5f319cc57d131b | % Initialize and configure a butterfly_direct block.
%
% butterfly_direct_init(blk, varargin)
%
% blk = the block to configure
% varargin = {'varname', 'value', ...} pairs
%
% Valid varnames:
% * biplex = Make biplex.
% * FFTSize = Size of the FFT (2^FFTSize points).
% * Coeffs = Coefficients ... |
github | mstrader/mlib_devel-master | casper_library_bus_init.m | .m | mlib_devel-master/casper_library/casper_library_bus_init.m | 44,036 | utf_8 | 6051a65f926951968b15924edc2de8b5 | function casper_library_bus_init()
warning off Simulink:Engine:MdlFileShadowing;
close_system('casper_library_bus', 0);
mdl = new_system('casper_library_bus', 'Library');
blk = get(mdl,'Name');
warning on Simulink:Engine:MdlFileShadowing;
add_block('built-in/SubSystem', [blk,'/bus_addsub']);
bus_addsub_gen([bl... |
github | mstrader/mlib_devel-master | square_transposer_init.m | .m | mlib_devel-master/casper_library/square_transposer_init.m | 6,020 | utf_8 | 961ec46a987dd5eaa5ef2f8a8eab46ec | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | fft_callback_arch.m | .m | mlib_devel-master/casper_library/fft_callback_arch.m | 2,182 | utf_8 | a0497bc714337ac06795551eb88844ce | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://casper.berkeley.edu %
... |
github | mstrader/mlib_devel-master | complex_conj_init.m | .m | mlib_devel-master/casper_library/complex_conj_init.m | 5,644 | utf_8 | 4d08063798a1c7e3ec925039cbe7b691 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKASA %
% www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | delay_srl_init.m | .m | mlib_devel-master/casper_library/delay_srl_init.m | 3,979 | utf_8 | 1f53316360552c35a274dbd4c08e6552 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKASA %
% www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | clean_blocks.m | .m | mlib_devel-master/casper_library/clean_blocks.m | 2,807 | utf_8 | 1262b3dca13b1b2051b0b227e10f9cfb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ ... |
github | mstrader/mlib_devel-master | bus_addsub_init.m | .m | mlib_devel-master/casper_library/bus_addsub_init.m | 13,544 | utf_8 | 1d514e3e96c6c12d5ac218209757b168 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% SKA Africa %
% http://www.kat.ac.za %
... |
github | mstrader/mlib_devel-master | dump_and_rethrow.m | .m | mlib_devel-master/casper_library/dump_and_rethrow.m | 1,710 | utf_8 | ef2f9cadf917f9417f31f10faeea525b | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
github | mstrader/mlib_devel-master | dump_exception.m | .m | mlib_devel-master/casper_library/dump_exception.m | 2,194 | utf_8 | 04c5177f30c57e32a81eea872633101f | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Center for Astronomy Signal Processing and Electronics Research %
% http://seti.ssl.berkeley.edu/casper/ %
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.