CloudRunner

... share your algorithms as a web service

Algorithm: Directional External Approximation of Minkowski Sum

Description:
Approximates the minkowski sum of a set of ellipsoids based on their shape matrices tightly regarding a certain direction.
Tags: ellipsoid
Usage: Algorithm is public.
Viewed 19426 times, called 20 times
Upload:
Empty star Empty star Empty star Empty star Empty star
0 votes
Florian Pfaff
06/02/2014 9:27 a.m. (version #1)

Run Algorithm

:
: Allow cached result?
Add varargin parameter - Remove varargin parameter
Close

Please Wait

Computation is running...

Plots

showing plot # of

Result Value(s)


		

Resource Usage

Execution of the algorithm took seconds.
Peak memory usage for running the algorithm was kilobytes (total usage: kilobytes).

Run ID / Link

ID of this run:
Link:

Result from Cache

Result has been delivered from cache and computed on (UTC).

Matlab log

(show)

		

Error

Using this algorithm in your local MATLAB environment is easy: Click here for instructions!

Usage Instructions for CloudRunner Client

  1. Download the CloudRunner Client by clicking here and place the downloaded file in your MATLAB working directory.

  2. Inside MATLAB, initialize the CloudRunner Client by calling CloudRunner:
    >> CloudRunner

    A login dialog will prompt for your CloudRunner mail address and password. For a start, you can leave the dialog empty and just click "Connect".

    Alternatively, you can provide the login credentials (or empty strings to skip login) as a parameter and hence skip the login dialog. This is useful when using CloudRunner in non-interactive scripts.
    >> CloudRunner('mail@example.com', 'password')

  3. Select this algorithm by its URL. Selecting an algorithm creates the lambda function that proxies calls to the algorithm to the server for execution:
    >> CloudRunnerSelect('http://www.cloudrunner.eu/algorithm/162/directional-external-approximation-of-minkowski-sum/version/1/')

    For the sake of convenience, you can also use the algorithm ID instead of its URL for public algorithms.

  4. Call functions from the algorithm like any regular local function.

Note: You can find further information on the help page.

Source Code

File:

1 function Qresult=minkExternalApproxDirectional(l,varargin)
2 % @author Florian Pfaff
3 % @date 2014
4     p=cellfun(@(Q)sqrt(l'*Q*l),varargin); 
5     Qresult=sum(p)*sum(reshape(cell2mat(arrayfun(@(i){varargin{i}/p(i)},1:length(varargin))),[size(varargin{1}),length(varargin)]),3);
6 end
Download algorithm (1 file) as ZIP

Comments

Please login to post a comment.