D = DISTMAT(X,Y) for matrices X and Y returns the distance matrix where the (i,j)th entry is the d-norm distance between the ith and jth row of X and Y respectively.
DISTMAT(X,Y,d) computes a specific d-norm distance. Default=2
[D,XI,YI]=DISTMAT(X,Y,d,var) gives the indices of the sorted values of matrix D depending on var ('ascend' or 'descend') in relation to both X and Y.
EXAMPLE: X=[5 1; 8 1; 1 9];
In Graph Theory it is often required to find out all the possible paths, which can exist between a source node and a sink node. So this function returns a all such possible paths, in a matrix format. INPUTS: 1. 'X' Matrix: Form a...
Establishing Relationships Between Rowsets with ADO.NET is an article which covers various topics such as business services, data relations, base class, inherited class and customerorder class etc., In this article you can get a brief explanation...
Geozip Calc Distance Between Zip Codes is Unix compatible. Calculates distance between zip codes in the US or finds zip codes within a given distance. The sub-routines included can be used to calculate distance between latitude and longitude...
How To Copy DataRows Between DataTables by Using Visual C# .NET is an easy to learn tutorial in which the author elaborates the procedure to copy a particular datatable row and shifting it to another table with the help of datatable object by...
Synchronization between XML Schema and Database is a Windows compatible script that synchronizes XML files and a relational database based on existing XML schemas. This allows you to manage a database and make alterations without creating a new...
Synchronize Identity Values Between Database and DataSet During Updates is an user friendly web based tutorial which provides you the solution for the problem of synchronizing identity values column between database and DataSet object while...
Web Services between .NET, Java and MS SOAP Toolkit - Part II, obviously is an ASP.NET refernce containing guidelines for building web clients and services. This article is based on the principles of SOAP of both MS and apache for .NET and java...
This code outputs the distance between 2 GPS points showing also the vertical and horizontal bearing between them. This code was originally made for an Automatic Tracking Antenna Aimer. If you find it useful please take note of the owner. If you...
Implementation of Haversine formula for calculating distance between points on a sphere. Given geographic coordinates, returns distance in kilometers.
This module provides 3 ways of detecting which objects have been allocated (methods 1 and 3) or became un-reclaimable (method 2) between 2 points in the code. It can be very useful to detect memory leaks (eg. cycles involving objects with a...
I came across the mention of a formula labeled "The Great Circle Distance Formula" that purported to calculate the distance between any two points on the earth given their longitude and latitude points (the reference was in a Linux...
These short functions convert identifier names between the most common naming conventions: CapitalizedWords, mixedCase and under_scores.
SpinCalc is a consolidated matlab function that will convert any rotation data between the 4 types included. Will also convert between 2 different Euler angle set types.
Multiple orientations can be input. For N orientations: DCM...
This function gets the nomograph which shows the relationship between the wavelength, wave period and water depth using the dispersion equation.
0. Syntax: >> wavelenvsth
1. Inputs: None.
2....
an perform a mixed-model ANOVA on simple designs with one between-subjects factor and one within-subjects (repeated-measures) factor and either display a results table or simply return the values within.
See comments at top of file for...
This function will compute the great circle distance between two points on a sphere of uniform radius using the Vincenty formula. At minimum, four inputs are required: lat1, long1, lat2, long2. Optionally, a fifth parameter (r) can be specified....
Compute the overlap volume between 2 spheres defined in an array. Computation is vectorized, and intersection volume are computed an analytical way.
Input: spheres data presented in an array G of four columns. G contains...
This program implements the tSL between two probability density functions following the references: Baba C. Vemuri, Meizhu Liu, Shun-Ichi Amari and Frank Nielsen, Total Bregman Divergence and its Applications to DTI Analysis,
This example is a proof-of-concept to show that handle objects can be used to model dependencies between different steps of a set of computations. It shows that objects can be used to hide the complexity of arranging the order of computations that... |