воскресенье, 17 февраля 2013 г.

Hierarchical clustering by using T-SQL

Introduction

 
 
In this blog post, I would like to show how to implement hierarchical data clustering by using T-SQL.
 
Hierarchical clustering is probably the simplest method of cluster analysis. The are two basic types of this method - divisive (processing begins from the single cluster and on each step clusters are divided) and agglomerative (on the beginning each item resides in its own cluster, on the next steps we merge two closest clusters until all clusters are merged into single one).
 
The script below utilizes agglomerative approach.

воскресенье, 10 февраля 2013 г.

Parse and show bitmap images by using T-SQL

Introduction


Inspired by this Itzik Ben Gan’s post, I wrote T-SQL query which parses a bitmap image, converts it to SQL Server Geometry format, and shows results in Spatial Data viewer.
 
The query is designed for SQL Server 2008 and supports processing of monochrome uncompressed bitmap images.