Skip to main content

write_random_data

Function write_random_data 

Source
pub fn write_random_data<StorageProvider: StorageWriteProvider>(
    storage_provider: &StorageProvider,
    output_file: &str,
    data_type: DataType,
    number_of_dimensions: usize,
    number_of_vectors: u64,
    radius: f32,
) -> CMDResult<()>
Expand description

Generate random points around a sphere with the specified radius and write them to a file

When data_type is int8 or uint8 radius must be <= 127.0