Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.331.361 Times

Kernel Bandwidth Optimization 1.0

  Date Added: June 09, 2013  |  Visits: 417

Kernel Bandwidth Optimization

Report Broken Link
Printer Friendly Version


Product Homepage
Download (52 downloads)



function [optW, C, W] = sskernel(x,W,str)% [optW, C, W] = sskernel(x,W,str)%% Function `sskernel' returns an optimal bandwidth (standard deviation)% of the Gauss density function used in kernel density estimation.% Optimization principle is to minimize expected L2 loss function between% the kernel estimate and an unknown underlying density function.% An assumption made is merely that samples are drawn from the density% independently each other.%% The optimal bandwidth is obtained as a minimizer of the formula,% sum_{i,j} int k(x - x_i) k(x - x_j) dx - 2 sum_{i~=j} k(x_i - x_j),% where k(x) is the kernel function.%% For more information, visit% http://2000.jukuin.keio.ac.jp/shimazaki/res/kernel.html%% Original paper:% Hideaki Shimazaki and Shigeru Shinomoto% Kernel Bandwidth Optimization in Spike Rate Estimation% Journal of Computational Neuroscience 2010% http://dx.doi.org/10.1007/s10827-009-0180-4%% Example usage:% optW = sskernel(x); ksdensity(x,'width',optW);%% Statistics Toolbox is required to execute ksdensity.% If it is not available, define the Gauss function as% `Gauss = @(s,w) 1/sqrt(2*pi)/w*exp(-s.^2/2/w^2);'.% Computing `mean( Gauss(x-s,optW) )' provides a kernel density estimate at s.%% Input argument% x: Sample data vector.% W (optinal):% A vector of kernel bandwidths.% The optimal bandwidth is selected from the elements of W.% Default value is W = logspace(log10(2*dx),log10((x_max - x_min)),50).% * Do not search bandwidths smaller than a sampling resolution of data.% str (optional):% String that specifies the kernel type.% This option is reserved for future extention.% Default str = 'Gauss'.%% Output argument% optW: Optimal kernel bandwidth.% W: Kernel bandwidths examined.% C: Cost functions of W.%% See also SSHIST%% Copyright (c) 2009 2010, Hideaki Shimazaki All rights reserved.% http://2000.jukuin.keio.ac.jp/shimazaki%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Parameters Settingsx = reshape(x,1,numel(x));str = 'Gauss';if nargin < 2 x_min = min(x); x_max = max(x); buf = sort(abs(diff(sort(x)))); dx = min(buf(logical(buf ~= 0))); Wmin = 2*dx; Wmax = 1*(x_max - x_min); W = logspace(log10(Wmin),log10(Wmax),50);end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Compute a Cost FunctionN_total = length(x);tau = triu( ones(N_total,1)*x - x'*ones(1,N_total), 1);idx = triu( ones(N_total,N_total), 1);TAU = tau(logical(idx)) .^2;C = zeros(1,length(W));for k = 1: length(W)w = W(k);C(k) = N_total/w + 1/w*sum(sum(2*exp(-TAU/4/w/w) - 4*sqrt(2)*exp(-TAU/2/w/w) ));endC = C/2/sqrt(pi);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Optimal Bin Size Selection[optC,nC]=min(C); optW = W(nC);

Requirements: No special requirements
Platforms: Matlab
Keyword: Optimal Option Optional Output Reserved Resolution Sampling Smaller Specifies String
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


KERNEL BANDWIDTH OPTIMIZATION RELATED
Development Tools  -  Continuous and discrete time optimal reduced order output feedback 1.0
Using the delta operator, the strengthened discrete-time optimal projection equations for optimal reduced-order compensation of systems with white stochastic parameters are formulated in the delta domain. The delta domain unifies discrete time and...
51.2 KB  
Libraries  -  HTML-to-RTF Pro DLL .Net 2.0.5
The HTML-to-RTF Pro DLL .Net converts HTML, XHTML into Word, Text, RTF with tables or transform tables to text. The HTML-to-RTF Pro DLL .Net created with only managed C#. Output rtf file is smaller than input HTML. The DLL doesn't require...
1.83 MB  
Development Tools  -  Univariate Multimodal Random Number Generator 1.0
Sometimes we need samples that come from a mixture of pdf's, where more than 1 peaks are observed. E.g. for analyzing goodness of a non-parametric kernel density estimation method.By using the Rejection method, this function generates random...
10 KB  
Multimedia & Graphics  -  Flip Book Printer 1.1
Flip Book Printer is a professional flip book maker. This powerful software can dramatically print almost all printable documents into digital flash flipbook with 3D virtual flipping effect. It's easy to operate and can finish the conversion...
26.1 MB  
Multimedia & Graphics  -  SilverFast HDR Studio 6.6.1r6
SilverFast HDR Studio - professional Imaging-Software (High Dynamic Range) High-end version for 48bit RAW data processing with JobManager, 48 bit color-corrected output, Virtual Light Table and much more (optional IT8 calibration). The HDR Studio...
26.5 MB  
Multimedia & Graphics  -  SilverFast HDR (Mac) 6.6.2r2
SilverFast HDR - professional Imaging-Software (High Dynamic Range) High-end version for 48bit RAW data processing with JobManager, 48 bit color-corrected output, Virtual Light Table and much more (optional IT8 calibration). SilverFast HDR 6.6...
10.99 MB  
Multimedia & Graphics  -  SilverFast HDR Studio (Mac) 6.6.2r2
SilverFast HDR Studio - professional Imaging-Software (High Dynamic Range) High-end version for 48bit RAW data processing with JobManager, 48 bit color-corrected output, Virtual Light Table and much more (optional IT8 calibration). The HDR Studio...
10.99 MB  
Communication  -  plotautobd 1.0
PLOTAUTOBD builds bifurcation diagrams as displayed by XPPAUT, from AUTO data saved in a DAT file by XPPAUT option File/All Info.Several built-in features allow to finely control the graphic output with the possibility to produce publication...
440.32 KB  
Communication  -  Extended DFT 1.0
EDFT (Extended Discrete Fourier Transform) algorithm produces N-point DFT of sequence X where N is greater than the length of input data. Unlike the Fast Fourier Transform (FFT), where unknown readings outside of X are zero-padded, the EDFT...
235.52 KB  
Development Tools  -  Image gradients with Gaussian smoothing 1.0
Carries out Gaussian smoothing followed by differencing as a way of estimating the gradients of a grey-level image in the X and Y directions. This is the initial stage of the well-known Canny edge detector, but the gradients can be used for many...
10 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB