Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9215913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:18:28+00:00 2026-06-18T02:18:28+00:00

Create a function MeanDistance(v1,v2) that returns the normalized distance between two vectors with elements

  • 0

Create a function MeanDistance(v1,v2) that returns the normalized distance between
two vectors with elements between 0 and 1: The function should return 0 if the vectors
are the same, and 1 if they are maximally different. This function should be used to compute
the distance d between v1 and v2.

How do I go about doing this? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:18:29+00:00Added an answer on June 18, 2026 at 2:18 am

    I don’t think the question is asking you to normalize the vectors. It’s asking you to normalize the distance. To do that, calculate the distance between the two vectors using your favorite distance measure (Euclidean, Manhattan, etc.) and divide by a constant that represents the maximum distance that is possible. The distance measure to use depends on your application (the ones I gave as examples are the most common). The value of the constant also depends on your application (specifically, the limits of your co-ordinate space, which seem to be 0 and 1 for all dimensions).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here my code- create function dbo.emptable() returns Table as return (select id, name, salary
I want to create function to return a 1d array with 2 elements in
I am trying to create a trigger function in PostgreSQL that should check records
I'm trying to create function that will do this same thing for 3 different
this is my query Create FUNCTION [dbo].[CountUses](@couponid INT) RETURNS INT AS BEGIN RETURN (
I would like to create a function that returns a concatinated string of a
CREATE function [dbo].[fn_GetDateOnly](@dateWithTime datetime) returns datetime WITH SCHEMABINDING as begin return DATEADD(DAY, DATEDIFF(DAY, 0,
CREATE FUNCTION TWO_FRONT(txt CHAR(30)) RETURNS CHAR(2) RETURN SUBSTRING(txt, 1, 2); DELIMITER $$ CREATE FUNCTION
I am trying to create T-SQL function from Northwind to return new table, that
How do I create a 'user defined function' that returns a 'cursor' back to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.